Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Arthanareeswaran2017-09-18 15:37:49 +0000
committerJay Arthanareeswaran2017-09-18 18:19:28 +0000
commit01d653b8154c601f5850f7a0d488fa3349909127 (patch)
tree26f434f5dee3b12ada67c8632c0b26da33e10715 /org.eclipse.jdt.compiler.tool.tests
parentc798229d351d6daa2232cff6c15750336659223e (diff)
downloadeclipse.jdt.core-01d653b8154c601f5850f7a0d488fa3349909127.tar.gz
eclipse.jdt.core-01d653b8154c601f5850f7a0d488fa3349909127.tar.xz
eclipse.jdt.core-01d653b8154c601f5850f7a0d488fa3349909127.zip
Bug 517841: [9] Support Java 9 APT models
Change-Id: I6b61e6ab32b905357b5256cd875eb8337822f3c6 Signed-off-by: Jay Arthanareeswaran <jarthana@in.ibm.com>
Diffstat (limited to 'org.eclipse.jdt.compiler.tool.tests')
-rw-r--r--org.eclipse.jdt.compiler.tool.tests/src/org/eclipse/jdt/compiler/tool/tests/AllTests.java3
-rw-r--r--org.eclipse.jdt.compiler.tool.tests/src/org/eclipse/jdt/compiler/tool/tests/CompilerToolJava9Tests.java2
2 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.jdt.compiler.tool.tests/src/org/eclipse/jdt/compiler/tool/tests/AllTests.java b/org.eclipse.jdt.compiler.tool.tests/src/org/eclipse/jdt/compiler/tool/tests/AllTests.java
index a2eb0102f8..7713e6ef1d 100644
--- a/org.eclipse.jdt.compiler.tool.tests/src/org/eclipse/jdt/compiler/tool/tests/AllTests.java
+++ b/org.eclipse.jdt.compiler.tool.tests/src/org/eclipse/jdt/compiler/tool/tests/AllTests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006, 2008 IBM Corporation and others.
+ * Copyright (c) 2006, 2017 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -22,6 +22,7 @@ public class AllTests extends TestCase {
public static Test suite() {
TestSuite suite = new TestSuite();
suite.addTestSuite(CompilerToolTests.class);
+ suite.addTestSuite(CompilerToolJava9Tests.class);
suite.addTest(CompilerInvocationTests.suite());
return suite;
}
diff --git a/org.eclipse.jdt.compiler.tool.tests/src/org/eclipse/jdt/compiler/tool/tests/CompilerToolJava9Tests.java b/org.eclipse.jdt.compiler.tool.tests/src/org/eclipse/jdt/compiler/tool/tests/CompilerToolJava9Tests.java
index 64ca57c69e..90b8652835 100644
--- a/org.eclipse.jdt.compiler.tool.tests/src/org/eclipse/jdt/compiler/tool/tests/CompilerToolJava9Tests.java
+++ b/org.eclipse.jdt.compiler.tool.tests/src/org/eclipse/jdt/compiler/tool/tests/CompilerToolJava9Tests.java
@@ -59,6 +59,8 @@ public class CompilerToolJava9Tests extends TestCase {
@Override
protected void setUp() throws Exception {
this.isJREBelow9 = SourceVersion.latest().compareTo(SourceVersion.RELEASE_8) <= 0;
+ if (isJREBelow9)
+ return;
this.compilers = new JavaCompiler[2];
this.compilerNames = new String[2];
ServiceLoader<JavaCompiler> javaCompilerLoader = ServiceLoader.load(JavaCompiler.class);

Back to the top