diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2024-02-19 09:41:18 +0700 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2024-02-19 09:43:36 +0700 |
commit | 08d0c4435b61512f55f8d0e357b09496fdbe155a (patch) | |
tree | 1766efaad12d8a6b4dfbc752b075be7e207f6427 /tests | |
parent | 97b184aae84da7a821aa9beafe542520d5cf25e4 (diff) | |
download | aspectj-08d0c4435b61512f55f8d0e357b09496fdbe155a.tar.gz aspectj-08d0c4435b61512f55f8d0e357b09496fdbe155a.zip |
Add 'AspectJ_JDK_Update' hint in various places
The hint is meant to help AspectJ developers identify the places where
there are to-dos for releases supporting new Java versions. This is work
in progress, new tags can be added wherever necessary in the future. But
for now, the most important places should be covered:
- AJC version string
- Test infrastructure (test suites, classes and XML files)
- BCEL class file version MAJOR_*, MINOR_* constants
- AjcTask constants for compiler source, target, release
- LangUtil::is*VMOrGreater methods
- ASM and JDT Core dependency versions
- CI workflow file
- Release notes
The to-do to check the tagged places is also mentioned in RELEASE.md.
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/test/java/org/aspectj/systemtest/AllTests19.java | 1 | ||||
-rw-r--r-- | tests/src/test/java/org/aspectj/systemtest/ajc1921/AllTestsAspectJ1921.java | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/src/test/java/org/aspectj/systemtest/AllTests19.java b/tests/src/test/java/org/aspectj/systemtest/AllTests19.java index dee55718c..665569ec7 100644 --- a/tests/src/test/java/org/aspectj/systemtest/AllTests19.java +++ b/tests/src/test/java/org/aspectj/systemtest/AllTests19.java @@ -43,6 +43,7 @@ public class AllTests19 { suite.addTest(AllTestsAspectJ199.suite()); suite.addTest(AllTestsAspectJ1919.suite()); suite.addTest(AllTestsAspectJ1920.suite()); + // AspectJ_JDK_Update suite.addTest(AllTestsAspectJ1921.suite()); suite.addTest(AllTests18.suite()); // $JUnit-END$ diff --git a/tests/src/test/java/org/aspectj/systemtest/ajc1921/AllTestsAspectJ1921.java b/tests/src/test/java/org/aspectj/systemtest/ajc1921/AllTestsAspectJ1921.java index 773ac9037..30b6728f1 100644 --- a/tests/src/test/java/org/aspectj/systemtest/ajc1921/AllTestsAspectJ1921.java +++ b/tests/src/test/java/org/aspectj/systemtest/ajc1921/AllTestsAspectJ1921.java @@ -11,6 +11,18 @@ import junit.framework.Test; import junit.framework.TestSuite; import org.aspectj.util.LangUtil; +// AspectJ_JDK_Update +// - Copy 'ajc*' package with all classes to a new package, incrementing the version number in the package +// - Rename all classes, incrementing version numbers +// - Add this class to the suite in class AllTests19 +// - Increment version numbers in strings, method calls and constants to the appropriate values, creating necessary +// methods and constants classes providing them, if they do not exist yet +// - Also increment references to 'ajc*.xml' and 'sanity-tests-*.xml' test definition, copying the previous +// tests/src/test/resources/org/aspectj/systemtest/ajc* directory, incrementing all names and adjusting the XML +// file contents appropriately +// - Search for other 'AspectJ_JDK_Update' hints in the repository, also performing the necessary to-dos there +// - Remove this comment from the previous class version after copying this one + /** * @author Alexander Kriegisch */ @@ -23,6 +35,7 @@ public class AllTestsAspectJ1921 { suite.addTest(SanityTestsJava21.suite()); suite.addTest(Ajc1921TestsJava.suite()); } + // AspectJ_JDK_Update // Do not run tests using a previous compiler's preview features anymore. They would all fail. // TODO: Comment out the following block when upgrading JDT Core to Java 22 if (LangUtil.is21VMOrGreater() && !LangUtil.is22VMOrGreater()) { |