Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManoj Palat2019-02-08 04:46:52 +0000
committerManoj Palat2019-02-08 04:46:52 +0000
commit2cb6bbde59f397e516d3e3059008987e0884d3f5 (patch)
tree5720d46c770e02c06ee8f1ce6b2f43848d334641
parentaaf50a6f0734f36f46875ea57e9d7e4952f24492 (diff)
downloadeclipse.jdt.core-2cb6bbde59f397e516d3e3059008987e0884d3f5.tar.gz
eclipse.jdt.core-2cb6bbde59f397e516d3e3059008987e0884d3f5.tar.xz
eclipse.jdt.core-2cb6bbde59f397e516d3e3059008987e0884d3f5.zip
Revert "Bug 544241 - [12] Wrong error message: Switch Expression is a preview feature"
-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 8aaf34e03d..ef5bf2652f 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 Expressions", CompilerOptions.VERSION_12); //$NON-NLS-1$
+ problemReporter().previewFeatureNotSupported(s.sourceStart, s.sourceEnd, "Switch Expression", CompilerOptions.VERSION_12); //$NON-NLS-1$
} else if (!this.options.enablePreviewFeatures) {
- problemReporter().previewFeatureNotEnabled(s.sourceStart, s.sourceEnd, "Switch Expressions"); //$NON-NLS-1$
+ problemReporter().previewFeatureNotEnabled(s.sourceStart, s.sourceEnd, "Switch Expression"); //$NON-NLS-1$
} else {
if (this.options.isAnyEnabled(IrritantSet.PREVIEW)) {
problemReporter().previewFeatureUsed(s.sourceStart, s.sourceEnd);

Back to the top