Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManoj Palat2019-02-08 04:49:55 +0000
committerManoj Palat2019-02-08 06:30:29 +0000
commit5caa7124524696e2178c69f4a02c9e034d1bdbda (patch)
tree0abcfff7a2aa33cba26b9e32a4dd46e064b371fa /org.eclipse.jdt.core.tests.compiler/src
parent2cb6bbde59f397e516d3e3059008987e0884d3f5 (diff)
downloadeclipse.jdt.core-5caa7124524696e2178c69f4a02c9e034d1bdbda.tar.gz
eclipse.jdt.core-5caa7124524696e2178c69f4a02c9e034d1bdbda.tar.xz
eclipse.jdt.core-5caa7124524696e2178c69f4a02c9e034d1bdbda.zip
Bug 544241 [12] Wrong error message: Switch Expression is a preview
Diffstat (limited to 'org.eclipse.jdt.core.tests.compiler/src')
-rw-r--r--org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/ComplianceDiagnoseTest.java2
-rw-r--r--org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/SwitchExpressionTest.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/ComplianceDiagnoseTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/ComplianceDiagnoseTest.java
index 8f443fd7a6..c7f9fc9ece 100644
--- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/ComplianceDiagnoseTest.java
+++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/ComplianceDiagnoseTest.java
@@ -3543,7 +3543,7 @@ public void testBug531714_001() {
" default -> 3;\n" +
" };\n" +
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
- "The preview feature Switch Expression is only available with source level 12 and above\n" +
+ "The preview feature Switch Expressions is only available with source level 12 and above\n" +
"----------\n" +
"2. ERROR in X.java (at line 4)\n" +
" case 0 -> i * 0;\n" +
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/SwitchExpressionTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/SwitchExpressionTest.java
index b18bf7197d..c975dca270 100644
--- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/SwitchExpressionTest.java
+++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/SwitchExpressionTest.java
@@ -300,7 +300,7 @@ public class SwitchExpressionTest extends AbstractRegressionTest {
" default -> 3;\n" +
" };\n" +
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
- "Switch Expression is a preview feature and disabled by default. Use --enable-preview to enable\n" +
+ "Switch Expressions is a preview feature and disabled by default. Use --enable-preview to enable\n" +
"----------\n" +
"2. ERROR in X.java (at line 4)\n" +
" case 0 -> i * 0;\n" +

Back to the top