aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/java/org/aspectj/systemtest/ajc1921
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2024-02-19 10:22:10 +0700
committerAlexander Kriegisch <Alexander@Kriegisch.name>2024-02-19 11:21:19 +0700
commit198957fd26d1e5cd347c0c1c3a0c9100295af4cf (patch)
tree38e4be75f6abf612b04cf4a938607a5acbe5f370 /tests/src/test/java/org/aspectj/systemtest/ajc1921
parent08d0c4435b61512f55f8d0e357b09496fdbe155a (diff)
downloadaspectj-198957fd26d1e5cd347c0c1c3a0c9100295af4cf.tar.gz
aspectj-198957fd26d1e5cd347c0c1c3a0c9100295af4cf.zip
LangUtil: remove methods like 'is11VMOrGreater', 'is1dot5VMOrGreater'
Replace them by a uniform method 'isVMGreaterOrEqual(double)', also overloaded for int. This gets rid of one 'AspectJ_JDK_Update' tag. One less place to check and update with each newly supported Java version. :-) Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'tests/src/test/java/org/aspectj/systemtest/ajc1921')
-rw-r--r--tests/src/test/java/org/aspectj/systemtest/ajc1921/AllTestsAspectJ1921.java4
1 files changed, 2 insertions, 2 deletions
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 30b6728f1..56e8b963a 100644
--- a/tests/src/test/java/org/aspectj/systemtest/ajc1921/AllTestsAspectJ1921.java
+++ b/tests/src/test/java/org/aspectj/systemtest/ajc1921/AllTestsAspectJ1921.java
@@ -31,14 +31,14 @@ public class AllTestsAspectJ1921 {
public static Test suite() {
TestSuite suite = new TestSuite("AspectJ 1.9.21 tests");
suite.addTest(Bugs1921Tests.suite());
- if (LangUtil.is21VMOrGreater()) {
+ if (LangUtil.isVMGreaterOrEqual(21)) {
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()) {
+ if (LangUtil.isVMGreaterOrEqual(21) && !LangUtil.isVMGreaterOrEqual(22)) {
suite.addTest(Java21PreviewFeaturesTests.suite());
}
return suite;