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/09/10 12:37:55 UTC
[GitHub] [netbeans] arusinha opened a new pull request #1487: [NETBEANS-3078]:Provided Error Hint to turn on Preview Features in An…
arusinha opened a new pull request #1487: [NETBEANS-3078]:Provided Error Hint to turn on Preview Features in An…
URL: https://github.com/apache/netbeans/pull/1487
…t Java projects
Jira Link: https://issues.apache.org/jira/browse/NETBEANS-3078
Suppose we had used switch-expression in Java application (JDK-12)
e.g.,
int a = switch (num)
{ case 1 ->1; default->2; }
;
It will show the below error:
switch expressions are a preview feature and are disabled by default.
(use --enable-preview to enable switch expressions)
The proposed hint will add the needed JVM parameter in run/compiler properties
----------------------------------------------------------------
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