Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Arthanareeswaran2019-05-21 11:02:39 -0400
committerJay Arthanareeswaran2019-05-22 00:28:14 -0400
commit3d670fe48cd3ec2fe4d3f7a2fca5830a4057291b (patch)
tree4c4c3def063d31b105a16424bee8e364a5fc1878
parent4236732223b1aca6b7f00e0723f59948f7043d5c (diff)
downloadeclipse.jdt.core-3d670fe48cd3ec2fe4d3f7a2fca5830a4057291b.tar.gz
eclipse.jdt.core-3d670fe48cd3ec2fe4d3f7a2fca5830a4057291b.tar.xz
eclipse.jdt.core-3d670fe48cd3ec2fe4d3f7a2fca5830a4057291b.zip
returning a value Fixing the error message Change-Id: I86334dc6025d234c7c8ea66e5f07043e9008c305 Signed-off-by: Jay Arthanareeswaran <jarthana@in.ibm.com>
-rw-r--r--org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/SwitchExpressionTest.java4
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/messages.properties2
2 files changed, 3 insertions, 3 deletions
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 31eba3a614..a9365143cf 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
@@ -2437,7 +2437,7 @@ public class SwitchExpressionTest extends AbstractRegressionTest {
"1. ERROR in X.java (at line 11)\n" +
" continue;\n" +
" ^^^^^^^^^\n" +
- "Illegal last statement in Switch expression case body - continue, return not allowed\n" +
+ "'continue' or 'return' cannot be the last statement in a Switch expression case body\n" +
"----------\n");
}
public void testBug545983_02() {
@@ -2469,7 +2469,7 @@ public class SwitchExpressionTest extends AbstractRegressionTest {
"1. ERROR in X.java (at line 11)\n" +
" return 2;\n" +
" ^^^^^^^^^\n" +
- "Illegal last statement in Switch expression case body - continue, return not allowed\n" +
+ "'continue' or 'return' cannot be the last statement in a Switch expression case body\n" +
"----------\n");
}
public void testBug547125_01() {
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/messages.properties b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/messages.properties
index c55d8022d1..15e133ddeb 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/messages.properties
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/messages.properties
@@ -985,7 +985,7 @@
1609 = Switch Case Labels with '->' are allowed only at source level 12 or above
1610 = Break of a switch expression should have a value
1611 = A Switch expression should cover all possible values
-1612 = Illegal last statement in Switch expression case body - continue, return not allowed
+1612 = 'continue' or 'return' cannot be the last statement in a Switch expression case body
### ELABORATIONS
## Access restrictions

Back to the top