diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/SwitchPatternTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/SwitchPatternTest.java index 48f76166749..64c61e78b40 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/SwitchPatternTest.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/SwitchPatternTest.java @@ -2227,7 +2227,7 @@ public void testBug574563_004() { 3. ERROR in X.java (at line 4) case null, Integer i when i > 10 -> System.out.println(0); ^^^^^ - Syntax error on tokens, TypeElidedFormalParameter expected instead + Syntax error on tokens, TypeElidedUnnamedFormalParameter expected instead ---------- 4. ERROR in X.java (at line 4) case null, Integer i when i > 10 -> System.out.println(0); @@ -2270,7 +2270,7 @@ public void testBug574563_005() { 3. ERROR in X.java (at line 4) case Integer i when i > 10, null -> System.out.println(0); ^^^^^^^^ - Syntax error on tokens, TypeElidedFormalParameter expected instead + Syntax error on tokens, TypeElidedUnnamedFormalParameter expected instead ---------- 4. ERROR in X.java (at line 4) case Integer i when i > 10, null -> System.out.println(0); @@ -6666,7 +6666,7 @@ public void testIssue1351_7() { 3. ERROR in X.java (at line 5) case Byte p when p.equals(exp), (byte) 0 -> { ^^^^ - Syntax error on tokens, TypeElidedFormalParameter expected instead + Syntax error on tokens, TypeElidedUnnamedFormalParameter expected instead ---------- 4. ERROR in X.java (at line 8) } @@ -6807,7 +6807,7 @@ public void testIssue1351_10() { 3. ERROR in X.java (at line 5) case Byte p when p.equals(exp), null -> { ^^^^^^^ - Syntax error on tokens, TypeElidedFormalParameter expected instead + Syntax error on tokens, TypeElidedUnnamedFormalParameter expected instead ---------- 4. ERROR in X.java (at line 8) } @@ -6853,7 +6853,7 @@ public void testIssue1351_11() { 3. ERROR in X.java (at line 5) case Byte p when p.equals(exp), default -> { ^^^^^^^^^^^^^^^^^^^^^^^^^ - Syntax error on tokens, TypeElidedFormalParameter expected instead + Syntax error on tokens, TypeElidedUnnamedFormalParameter expected instead ---------- 4. ERROR in X.java (at line 8) } diff --git a/org.eclipse.jdt.core/.gitignore b/org.eclipse.jdt.core/.gitignore new file mode 100644 index 00000000000..49a94fd72ac --- /dev/null +++ b/org.eclipse.jdt.core/.gitignore @@ -0,0 +1 @@ +jdtCompilerAdapter.jar