Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Arthanareeswaran2019-09-18 02:20:45 -0400
committerJay Arthanareeswaran2019-09-18 02:21:33 -0400
commit45ae987e0f3fa247c5dcec9f0037237b86053106 (patch)
tree1c79d16fae66497aeed1fd667bbb4f15f2850843
parent7cd2137f8a59dd73ceb5cbf7533b5422ad97200b (diff)
downloadeclipse.jdt.core-45ae987e0f3fa247c5dcec9f0037237b86053106.tar.gz
eclipse.jdt.core-45ae987e0f3fa247c5dcec9f0037237b86053106.tar.xz
eclipse.jdt.core-45ae987e0f3fa247c5dcec9f0037237b86053106.zip
Fix failing AST Node tests due to wrong constant forY20190919-0900P20190918-0530P20190918-0415BETA_JAVA13
ASTNode.YIELD_STATEMENT Change-Id: I05d707e480146b388073efe7f9e2d493c6b33bce Signed-off-by: Jay Arthanareeswaran <jarthana@in.ibm.com>
-rw-r--r--org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTStructuralPropertyTest.java2
-rw-r--r--org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTTest.java1
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTNode.java2
3 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTStructuralPropertyTest.java b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTStructuralPropertyTest.java
index caf5ae3be3..9158ad630e 100644
--- a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTStructuralPropertyTest.java
+++ b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTStructuralPropertyTest.java
@@ -372,7 +372,7 @@ public class ASTStructuralPropertyTest extends org.eclipse.jdt.core.tests.junit.
// oops - guess that's not valid
}
}
- assertEquals("Wrong last known type", 101, hi); // last known one
+ assertEquals("Wrong last known type", 102, hi); // last known one
assertEquals("Wrong number of distinct types", hi, classes.size()); // all classes are distinct
}
}
diff --git a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTTest.java b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTTest.java
index bd26694a73..3aac660f89 100644
--- a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTTest.java
+++ b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTTest.java
@@ -8891,6 +8891,7 @@ public class ASTTest extends org.eclipse.jdt.core.tests.junit.extension.TestCase
ASTNode.PROVIDES_DIRECTIVE,
ASTNode.MODULE_MODIFIER,
ASTNode.SWITCH_EXPRESSION,
+ ASTNode.YIELD_STATEMENT,
ASTNode.TEXT_BLOCK
};
diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTNode.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTNode.java
index 6f20faa973..3333242ba8 100644
--- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTNode.java
+++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTNode.java
@@ -1192,6 +1192,8 @@ public abstract class ASTNode {
return WhileStatement.class;
case WILDCARD_TYPE :
return WildcardType.class;
+ case YIELD_STATEMENT :
+ return YieldStatement.class;
}
throw new IllegalArgumentException();
}

Back to the top