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

Arunava Sinha updated NETBEANS-3617:
------------------------------------
          Component/s: java - Editor
    Affects Version/s: 11.1
          Description: 
Suppose somebody had opened a single suppose file(JEP330) and IDE is runnning 
in JDK 13

Sample code.

public static void main (String args[])

{

String str ="""

                  hello""";

}

 

Text block is preview feature and need to set below properties in file 
Properties->VM Args

--enable-preview --source 13

Once the properties are set run of the file will be okay but is the Editor,  
the "text Block" will be marked in red showing error "Text block is a preview 
feature".

The editor gives the false impression that enable-preview needs to be enable 
though the properties are already set.

> Support for reading compiler VM arguments during file parsing in  Java Editor 
> For single Source file
> ----------------------------------------------------------------------------------------------------
>
>                 Key: NETBEANS-3617
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-3617
>             Project: NetBeans
>          Issue Type: Improvement
>          Components: java - Editor
>    Affects Versions: 11.1
>            Reporter: Arunava Sinha
>            Assignee: Arunava Sinha
>            Priority: Major
>
> Suppose somebody had opened a single suppose file(JEP330) and IDE is runnning 
> in JDK 13
> Sample code.
> public static void main (String args[])
> {
> String str ="""
>                   hello""";
> }
>  
> Text block is preview feature and need to set below properties in file 
> Properties->VM Args
> --enable-preview --source 13
> Once the properties are set run of the file will be okay but is the Editor,  
> the "text Block" will be marked in red showing error "Text block is a preview 
> feature".
> The editor gives the false impression that enable-preview needs to be enable 
> though the properties are already set.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
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