Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java6
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/BreakStatement.java2
2 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java
index f2b6bc5d6e..78032b11ee 100644
--- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java
+++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java
@@ -289,9 +289,9 @@ public final class AST {
*/
public static final int JLS12 = 12;
/**
- * Internal synonym for {@link #JLS11}. Use to alleviate
- * deprecation warnings once JLS11 is deprecated
- * @since 3.16
+ * Internal synonym for {@link #JLS12}. Use to alleviate
+ * deprecation warnings once JLS12 is deprecated
+ * @since 3.18
*/
static final int JLS12_INTERNAL = JLS12;
diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/BreakStatement.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/BreakStatement.java
index 1e29a5e250..1c8312e3f0 100644
--- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/BreakStatement.java
+++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/BreakStatement.java
@@ -160,7 +160,7 @@ public class BreakStatement extends Statement {
result.copyLeadingComment(this);
result.setLabel((SimpleName) ASTNode.copySubtree(target, getLabel()));
if (this.ast.apiLevel >= AST.JLS12_INTERNAL) {
- result.setExpression((Expression) ASTNode.copySubtree(target, getLabel()));
+ result.setExpression((Expression) ASTNode.copySubtree(target, getExpression()));
}
return result;
}

Back to the top