aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/java/org/aspectj/systemtest/ajc190
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/ajc190
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/ajc190')
-rw-r--r--tests/src/test/java/org/aspectj/systemtest/ajc190/ModuleTests.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/src/test/java/org/aspectj/systemtest/ajc190/ModuleTests.java b/tests/src/test/java/org/aspectj/systemtest/ajc190/ModuleTests.java
index 70adf5667..a73c75077 100644
--- a/tests/src/test/java/org/aspectj/systemtest/ajc190/ModuleTests.java
+++ b/tests/src/test/java/org/aspectj/systemtest/ajc190/ModuleTests.java
@@ -69,7 +69,7 @@ public class ModuleTests extends XMLBasedAjcTestCaseForJava9OrLater {
// This tests that when using --add-modules with one of the JDK modules (in the jmods subfolder of the JDK)
// that it can be found without needing to set --module-path (this seems to be implicitly included by javac too)
public void testAddModules1() {
- if (LangUtil.is11VMOrGreater()) {
+ if (LangUtil.isVMGreaterOrEqual(11)) {
// java.xml.bind is gone in Java11
return;
}
@@ -79,7 +79,7 @@ public class ModuleTests extends XMLBasedAjcTestCaseForJava9OrLater {
// This tests that we can use add-modules to pull in something from the JDK jmods package and that
// when subsequently weaving we can see types from those modules
public void testWovenAfterAddModules() {
- if (LangUtil.is11VMOrGreater()) {
+ if (LangUtil.isVMGreaterOrEqual(11)) {
// java.xml.bind is gone in Java11
return;
}
@@ -88,7 +88,7 @@ public class ModuleTests extends XMLBasedAjcTestCaseForJava9OrLater {
// --limit-modules
public void testLimitModules1() {
- if (LangUtil.is11VMOrGreater()) {
+ if (LangUtil.isVMGreaterOrEqual(11)) {
// java.xml.bind is gone in Java11
return;
}
@@ -97,7 +97,7 @@ public class ModuleTests extends XMLBasedAjcTestCaseForJava9OrLater {
// --add-reads
public void testAddReads1() {
- if (LangUtil.is11VMOrGreater()) {
+ if (LangUtil.isVMGreaterOrEqual(11)) {
// java.xml.bind is gone in Java11
return;
}