@Override
public void setUp() throws Exception {
+ // Activate this block after upgrading to JDT Core Java 15
throw new IllegalStateException(
"These tests need a Java 14 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 15
/*
if (!LangUtil.is14VMOrGreater() || LangUtil.is15VMOrGreater()) {
throw new IllegalStateException(
@Override
public void setUp() throws Exception {
+ // Activate this block after upgrading to JDT Core Java 16
throw new IllegalStateException(
"These tests need a Java 15 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 16
/*
if (!LangUtil.is15VMOrGreater() || LangUtil.is16VMOrGreater()) {
throw new IllegalStateException(
/*
* Some very trivial tests that help verify things are OK.
- * These are a copy of the earlier Sanity Tests created for 1.6 but these supply the -10 option
+ * These are a copy of the earlier Sanity Tests created for 1.6 but these supply the -11 option
* to check code generation and modification with that version specified.
*
* @author Andy Clement
/*
* Some very trivial tests that help verify things are OK.
- * These are a copy of the earlier Sanity Tests created for 1.6 but these supply the -10 option
+ * These are a copy of the earlier Sanity Tests created for 1.6 but these supply the -13 option
* to check code generation and modification with that version specified.
*
* @author Andy Clement
suite.addTest(SanityTestsJava14.suite());
}
// Do not run tests using a previous compiler's preview features anymore. They would all fail.
-/*
+ /*
if (LangUtil.is14VMOrGreater() && !LangUtil.is15VMOrGreater()) {
suite.addTest(Ajc196PreviewFeaturesTests.suite());
}
-*/
+ */
return suite;
}
}
/*
* Some very trivial tests that help verify things are OK.
- * These are a copy of the earlier Sanity Tests created for 1.6 but these supply the -10 option
+ * These are a copy of the earlier Sanity Tests created for 1.6 but these supply the -14 option
* to check code generation and modification with that version specified.
*
* @author Andy Clement
suite.addTest(SanityTestsJava16.suite());
suite.addTest(Ajc197TestsJava.suite());
}
+ // Do not run tests using a previous compiler's preview features anymore. They would all fail.
+ /*
if (LangUtil.is16VMOrGreater() && !LangUtil.is17VMOrGreater()) {
suite.addTest(Java16PreviewFeaturesTests.suite());
}
+ */
return suite;
}
}
/*
* Some very trivial tests that help verify things are OK.
- * These are a copy of the earlier Sanity Tests created for 1.6 but these supply the -10 option
+ * These are a copy of the earlier Sanity Tests created for 1.6 but these supply the -15 option
* to check code generation and modification with that version specified.
*
* @author Alexander Kriegisch
/*
* Some very trivial tests that help verify things are OK.
- * These are a copy of the earlier Sanity Tests created for 1.6 but these supply the -10 option
+ * These are a copy of the earlier Sanity Tests created for 1.6 but these supply the -16 option
* to check code generation and modification with that version specified.
*
* @author Alexander Kriegisch
public static Test suite() {
TestSuite suite = new TestSuite("AspectJ 1.9.8 tests");
if (LangUtil.is9VMOrGreater()) {
- suite.addTest(org.aspectj.systemtest.ajc198.CompileWithReleaseTests.suite());
+ suite.addTest(CompileWithReleaseTests.suite());
}
if (LangUtil.is17VMOrGreater()) {
suite.addTest(SanityTestsJava17.suite());
/*
* Some very trivial tests that help verify things are OK.
- * These are a copy of the earlier Sanity Tests created for 1.6 but these supply the -10 option
+ * These are a copy of the earlier Sanity Tests created for 1.6 but these supply the -17 option
* to check code generation and modification with that version specified.
*
* @author Alexander Kriegisch