You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2019/10/09 08:06:38 UTC

[GitHub] [netbeans] JaroslavTulach opened a new pull request #1561: Always specify javac.target

JaroslavTulach opened a new pull request #1561: Always specify javac.target
URL: https://github.com/apache/netbeans/pull/1561
 
 
   Always specify javac.target to allow compilation on JDK11+ and execution on JDK8. Once I compiled NetBeans with JDK11:
   ```
   nbbuild$ ant build -Dnbjdk.home=/jdk11
   ```
   but then I wanted to compile again with JDK8
   ```
   nbbuild$ ant build -Dnbjdk.home=/jdk8
   ```
   it failed with "Incompatible class file error". In general we have to specify `target="${javac.target}"` to prevent JDK11+ to use too modern bytecode formats. This PR contains two places where the missing `target` was causing problems in my case.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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

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