You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Jaroslav Tulach (Jira)" <ji...@apache.org> on 2021/02/06 19:15:00 UTC

[jira] [Created] (NETBEANS-5339) Let's NetBeans Java Support work with --release X flag

Jaroslav Tulach created NETBEANS-5339:
-----------------------------------------

             Summary: Let's NetBeans Java Support work with --release X flag
                 Key: NETBEANS-5339
                 URL: https://issues.apache.org/jira/browse/NETBEANS-5339
             Project: NetBeans
          Issue Type: Improvement
          Components: java - Source
    Affects Versions: 12.0
            Reporter: Jaroslav Tulach
            Assignee: Jan Lahoda


Since JDK9 there is {{-release}} flag which can specify which JDK API one wishes to compile against. Time to use it in NetBeans!

Historically NetBeans Java support tries to detect a JDK one is running on and decrease the requested {{--source}} level to the supported JDK. This is very annoying and in the context of {{--release}} flag, unnecessary.

Modern {{javac}} compiler have snapshot JDK API for each version since JDK7 to the latest JDK. Regardless on which version the NetBeans IDE is running, people should be able to select the right release/target JDK and get errors according to its API.

By default a specified {{--source}} (by a SourceVersionQuery) should also imply appropriate {{--release}}. There might be other means how to control both source as well as release.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists