]> source.dussan.org Git - aspectj.git/commitdiff
Do not run Java 18 preview feature tests with Java 19 JDT Core
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Mon, 3 Oct 2022 10:53:33 +0000 (12:53 +0200)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Mon, 3 Oct 2022 10:53:33 +0000 (12:53 +0200)
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCaseForJava18Only.java

index ba4d0060580d446a6e386140470b39bb68c6290c..d79229c1b0c3ec5a80e59972b9dcbcf7e60d924c 100644 (file)
@@ -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();
+               */
        }
 
 }