You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Stephen Bannasch (Jira)" <ji...@apache.org> on 2019/12/31 21:51:00 UTC

[jira] [Created] (NETBEANS-3655) NB-Javac

Stephen Bannasch created NETBEANS-3655:
------------------------------------------

             Summary: NB-Javac
                 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


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