You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Helmut Leininger (JIRA)" <ji...@apache.org> on 2019/08/02 07:06:00 UTC
[jira] [Created] (NETBEANS-2941) Hint "convert rule to switch" not
shown with Gradle - Oopenjdk12 - --enable-preview
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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists