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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-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