[ 
https://issues.apache.org/jira/browse/NETBEANS-4219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17095362#comment-17095362
 ] 

Frank Tsiang commented on NETBEANS-4219:
----------------------------------------

I'm not sure what Maven has to do with this suggestion (for example we have
an ant build process when building outside of the netbeans to create
Multi-release jar files). This issue here is not creating a
multi-release jar, it is working with a multi-release project where we may
have a situation as follows..

\Version 9
          \A.java    <-- only compilable under jdk 9
          \B.java    <-- only compilable under jdk 9..10
          \C.java    <-- only compilable under jdk 9+
\Version 10
          \A.java   <-- only compilable under jdk 10+
\Version 11
          \B.java  <-- only compilable under jdk 11+

We have not found a way to work with jdk specific code within the IDE when
having a scenario like the one above. The only solution is to maintain
multiple copies of the jdk specific source code for each version thus a
version 11 directory contains copies of A.java (ver 10) and C.java (ver 9).
Then we can load the jdk agnostic code (whatever the lowest supported
version is) and version 11 source directory into the IDE.

By being able to specify the JDK source / library by source directory the
IDE should then have enough information to be able to properly compile the
source code with proper syntax highlighting, execute debugging etc
regardless of the build system.

Let me know if there is anything else I can clarify on the issue.

On Wed, Apr 22, 2020 at 12:54 PM Geertjan Wielenga (Jira) <j...@apache.org>



> Release specific Source Package Folders
> ---------------------------------------
>
>                 Key: NETBEANS-4219
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4219
>             Project: NetBeans
>          Issue Type: New Feature
>    Affects Versions: 11.3
>            Reporter: Frank Tsiang
>            Priority: Major
>              Labels: multi-release
>
> Currently I don't see any way to support multi-release projects. When loading 
> multiple source package folders netbeans assigns a single "Source/Binary 
> Format" for the entire project. What is needed is to be able to specify the 
> JDK version on a per Source Package Folder. Otherwise Netbeans complains 
> about syntax errors for source code that is not for the same JDK version as 
> the project.
>  
> Additional support to run the project as a specific JDK version would be 
> useful in this scenario (eg in Run under Project properties).



--
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

Reply via email to