Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
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)
NetBeans doesn't provide the fix.
Currently manually need to add '--enable-preview" in ant configuration file .
Attachments
Issue Links
- links to