Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
11.0
-
Gradle 5.5.1, Netbeans 11.1, Windows10, openjdk12
Description
in the project's build.gradle are these specifications:
compileJava { options.compilerArgs.addAll(['--enable-preview']) } run { jvmArgs(['--enable-preview']) }
A program containing
switch (string) { case"a123" -> System.out.println("a123"); ... }
compiles and runs well in the IDE.
if "old" switch format like
switch (string) { case "a123": System.out.println("a123"); break; ... }
is used, not hint
convert to rule switch
is shown
Attachments
Issue Links
- links to