diff options
author | Manoj Palat | 2019-05-16 06:24:26 +0000 |
---|---|---|
committer | Manoj Palat | 2019-05-16 06:24:26 +0000 |
commit | 506b84081b28a0a49c69bf0affa617d4dbc6012e (patch) | |
tree | 30b7c0ce644c06295968bec88e2892af213242e2 | |
parent | 74f920117bbf1dae1650ebfa4577620e740d08e4 (diff) | |
download | eclipse.jdt.core-506b84081b28a0a49c69bf0affa617d4dbc6012e.tar.gz eclipse.jdt.core-506b84081b28a0a49c69bf0affa617d4dbc6012e.tar.xz eclipse.jdt.core-506b84081b28a0a49c69bf0affa617d4dbc6012e.zip |
Bug 545715 comment 25 - [12] Assignment analysis doesn't work in switchI20190516-1405I20190516-1335I20190516-1250I20190516-1200I20190516-1055
statement with ->
Change-Id: I1f03d9bc91b6f8d2db9ca1655f4f3607ba6f63b5
-rw-r--r-- | org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullAnnotationTest.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullAnnotationTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullAnnotationTest.java index e850cdcb17..1ffab25200 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullAnnotationTest.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullAnnotationTest.java @@ -10588,7 +10588,7 @@ public void testBug545715() { Map<String, String> customOptions = getCompilerOptions(); customOptions.put(JavaCore.COMPILER_PB_ENABLE_PREVIEW_FEATURES, JavaCore.ENABLED); customOptions.put(CompilerOptions.OPTION_ReportPreviewFeatures, CompilerOptions.IGNORE); - runConformTestWithLibs( + runConformTest( new String[] { "X.java", "public class X {\n"+ @@ -10597,9 +10597,13 @@ public void testBug545715() { " break loop;\n"+ " }\n"+ " }\n"+ + " public static void main(String[] args) {\n"+ + " new X().f();\n"+ + " }\n"+ "}\n" }, - customOptions, - ""); + "", + customOptions, + new String[] {"--enable-preview"}); } } |