[
https://issues.apache.org/jira/browse/NETBEANS-3655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17006611#comment-17006611
]
Laszlo Kishalmi commented on NETBEANS-3655:
-------------------------------------------
Well, we have a goal to get rid of the need of nb-javac as that one is a fork
of javac and we update it from time to time with each release (sometimes
between releases if really needed). Though besides the compiler some other
support is needed to be implemented as well. There were a few bugs reported
earlier against 11.2 that it does not support the new language construct record
which is in preview.
We have a few people working on the javac itself, so I think Java 14 support is
coming soon.
> NB-Javac linkage error with JDK 14, can't generate class file version 58.65535
> ------------------------------------------------------------------------------
>
> Key: NETBEANS-3655
> URL: https://issues.apache.org/jira/browse/NETBEANS-3655
> Project: NetBeans
> Issue Type: Bug
> Affects Versions: 11.2
> Environment: Product Version: Apache NetBeans IDE 11.2
> Java: 14-ea; OpenJDK 64-Bit Server VM 14-ea+29-1384
> Runtime: OpenJDK Runtime Environment 14-ea+29-1384
> System: Mac OS X version 10.15.2 running on x86_64; UTF-8; en_US (nb)
> User directory: /Users/stephen/Library/Application Support/NetBeans/11.2
> Cache directory: /Users/stephen/Library/Caches/NetBeans/11.2
> Reporter: Stephen Bannasch
> Priority: Major
> Labels: jdk14, nbjavac
>
> Using NB 11.2 on macos 10.15.2 and am using JEP 354: Switch Expressions so am
> compiling with JDK 14.
> {noformat}
> openjdk 14-ea 2020-03-17
> OpenJDK Runtime Environment (build 14-ea+29-1384)
> OpenJDK 64-Bit Server VM (build 14-ea+29-1384, mixed mode, sharing)
> {noformat}
>
> Am also setting these additional compiler options in the NB project:
> {noformat}
> --enable-preview --source 14 -Xlint:unchecked -Xlint:preview
> {noformat}
> Installed nb-javac today to see if I could get "Compile on save" working.
> With "Compile on save" disabled I need to manually build the project every
> time I want to test changes.
> With "Compile on save" enabled I get this error when running the project.
> {noformat}
> Error: LinkageError occurred while loading main class GraphPanel.GraphDemo
> java.lang.UnsupportedClassVersionError: GraphPanel/GraphDemo (class
> file version 57.65535) was compiled with preview features that are
> unsupported. This version of the Java Runtime only recognizes preview
> features for class file version 58.65535
> /Users/stephen/Library/Caches/NetBeans/11.2/executor-snippets/run.xml:111:
> The following error occurred while executing this line:
> /Users/stephen/Library/Caches/NetBeans/11.2/executor-snippets/run.xml:68:
> Java returned: 1
> BUILD FAILED (total time: 0 seconds)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists