aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2022-10-03 12:53:33 +0200
committerAlexander Kriegisch <Alexander@Kriegisch.name>2022-10-03 12:53:33 +0200
commit6bffb284511bd7b4153e8c578076c83c38cb01db (patch)
tree789d825bb102fb3e8caf0548c9449d61bf5394b7
parentc05db1e68c0f268641612403d1069e0f97beed59 (diff)
downloadaspectj-6bffb284511bd7b4153e8c578076c83c38cb01db.tar.gz
aspectj-6bffb284511bd7b4153e8c578076c83c38cb01db.zip
Do not run Java 18 preview feature tests with Java 19 JDT Core
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
-rw-r--r--testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCaseForJava18Only.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCaseForJava18Only.java b/testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCaseForJava18Only.java
index ba4d00605..d79229c1b 100644
--- a/testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCaseForJava18Only.java
+++ b/testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCaseForJava18Only.java
@@ -20,14 +20,13 @@ public abstract class XMLBasedAjcTestCaseForJava18Only extends XMLBasedAjcTestCa
@Override
public void setUp() throws Exception {
// Activate this block after upgrading to JDT Core Java 19
- /*
throw new IllegalStateException(
"These tests need a Java 18 level AspectJ compiler " +
"(e.g. because they use version-specific preview features). " +
"This compiler does not support preview features of a previous version anymore."
);
- */
// Activate this block before upgrading to JDT Core Java 19
+ /*
if (!LangUtil.is18VMOrGreater() || LangUtil.is19VMOrGreater()) {
throw new IllegalStateException(
"These tests should be run on Java 18 only " +
@@ -35,6 +34,7 @@ public abstract class XMLBasedAjcTestCaseForJava18Only extends XMLBasedAjcTestCa
);
}
super.setUp();
+ */
}
}