[ https://issues.apache.org/jira/browse/NETBEANS-5339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17404976#comment-17404976 ]
Jaroslav Tulach commented on NETBEANS-5339: ------------------------------------------- There is an attempt to reuse profiles support for releases: [https://github.com/apache/netbeans/pull/2786] - however it is far from being finished. > 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 > Priority: Critical > > 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-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists