Helmut Leininger created NETBEANS-2941:
------------------------------------------

             Summary: Hint "convert rule to switch" not shown with Gradle - 
Oopenjdk12 - --enable-preview
                 Key: NETBEANS-2941
                 URL: https://issues.apache.org/jira/browse/NETBEANS-2941
             Project: NetBeans
          Issue Type: Bug
          Components: projects - Gradle
    Affects Versions: 11.0
         Environment: Gradle 5.5.1, Netbeans 11.1, Windows10, openjdk12
            Reporter: Helmut Leininger
            Assignee: Laszlo Kishalmi


in the project's build.gradle are these specifications:
{code:java}
compileJava {
    options.compilerArgs.addAll(['--enable-preview']) 
}

run {
    jvmArgs(['--enable-preview'])
}
 
{code}
A program containing
{code:java}
switch (string) {
     case"a123" -> System.out.println("a123");
     ...
 }{code}
compiles and runs well in the IDE.

 

if "old" switch format like
{code:java}
switch (string) {
     case "a123":          
           System.out.println("a123");
           break;
     ...
 }{code}
is used, not hint
{code:java}
convert to rule switch{code}

is shown

 



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

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