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/compiler/org/eclipse
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/compiler/org/eclipse')
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
index ef5bf2652f..8aaf34e03d 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
@@ -9555,9 +9555,9 @@ protected void consumeSwitchExpression() {
SwitchExpression s = (SwitchExpression) this.astStack[this.astPtr--];
if (!this.parsingJava12Plus) {
- problemReporter().previewFeatureNotSupported(s.sourceStart, s.sourceEnd, "Switch Expression", CompilerOptions.VERSION_12); //$NON-NLS-1$
+ problemReporter().previewFeatureNotSupported(s.sourceStart, s.sourceEnd, "Switch Expressions", CompilerOptions.VERSION_12); //$NON-NLS-1$
} else if (!this.options.enablePreviewFeatures) {
- problemReporter().previewFeatureNotEnabled(s.sourceStart, s.sourceEnd, "Switch Expression"); //$NON-NLS-1$
+ problemReporter().previewFeatureNotEnabled(s.sourceStart, s.sourceEnd, "Switch Expressions"); //$NON-NLS-1$
} else {
if (this.options.isAnyEnabled(IrritantSet.PREVIEW)) {
problemReporter().previewFeatureUsed(s.sourceStart, s.sourceEnd);

Back to the top