tulsirai opened a new issue, #6337: URL: https://github.com/apache/netbeans/issues/6337
### Apache NetBeans version Apache NetBeans 18 ### What happened I wanted to set "--enable-preview" for the compiler which is availble Netbeans 8 but I don't see it in Netbeans 18. This option is required to get the new features of JDK compiled. Since I cannot set this option, I am unable to compile the codes written in JDK 17 and get the following comiler error: patterns in swithc statements are a preview feature and are disabled by default. (use --enable-preview to enable patterns in switch statements) ### How to reproduce _No response_ ### Did this work correctly in an earlier version? No / Don't know ### Operating System Windows ### JDK 17 ### Apache NetBeans packaging Apache NetBeans binary zip ### Anything else _No response_ ### Are you willing to submit a pull request? No -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- 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
