[ 
https://issues.apache.org/jira/browse/NETBEANS-3078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ARUNAVA SINHA resolved NETBEANS-3078.
-------------------------------------
    Resolution: Fixed

> Error hint to fix the '--enable-preview' features in Java Ant Project
> ---------------------------------------------------------------------
>
>                 Key: NETBEANS-3078
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-3078
>             Project: NetBeans
>          Issue Type: Improvement
>          Components: java - Editor
>            Reporter: ARUNAVA SINHA
>            Assignee: ARUNAVA SINHA
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 11.2
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> 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 .



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

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