Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2019-05-13 03:25:15 -0400
committerAndrey Loskutov2019-05-13 07:48:34 -0400
commit03fdaad45f18c40bcad7976e3ff73297b3d6d718 (patch)
treec7171ac4bd3008ebfefce5c9bb2caa4a75d4f62e
parent07c03e0c1a8370acadbedde0194541eadc4b20d4 (diff)
downloadeclipse.jdt.core-03fdaad45f18c40bcad7976e3ff73297b3d6d718.tar.gz
eclipse.jdt.core-03fdaad45f18c40bcad7976e3ff73297b3d6d718.tar.xz
eclipse.jdt.core-03fdaad45f18c40bcad7976e3ff73297b3d6d718.zip
Bug 547051 - do not run Java 9+ subclass search in tests on Java 8
Change-Id: I161d32da87f1a4a9e83e703c4ee09caed64870a1 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
-rw-r--r--org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/JavaSearchBugs9Tests.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/JavaSearchBugs9Tests.java b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/JavaSearchBugs9Tests.java
index 10b1f65708..51b9379b5d 100644
--- a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/JavaSearchBugs9Tests.java
+++ b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/JavaSearchBugs9Tests.java
@@ -4661,6 +4661,9 @@ public void testBug547051_modular() throws Exception {
}
public void testBug547051_modular2() throws Exception {
+ if (!isJRE9) {
+ return;
+ }
try {
IJavaProject project = createJava9Project("P");
IType type = project.findType("java.util.Collection");
@@ -4681,6 +4684,9 @@ public void testBug547051_modular2() throws Exception {
}
}
public void testBug547051_modular3() throws Exception {
+ if(!isJRE9) {
+ return;
+ }
try {
IJavaProject project = createJava9Project("P");
IType type = project.findType("java.util.Collection");

Back to the top