aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/src/main/java/org/aspectj/util/LangUtil.java5
-rw-r--r--util/src/test/java/org/aspectj/util/LangUtilTest.java7
2 files changed, 9 insertions, 3 deletions
diff --git a/util/src/main/java/org/aspectj/util/LangUtil.java b/util/src/main/java/org/aspectj/util/LangUtil.java
index 5c656cd7a..98f53e3c8 100644
--- a/util/src/main/java/org/aspectj/util/LangUtil.java
+++ b/util/src/main/java/org/aspectj/util/LangUtil.java
@@ -125,22 +125,27 @@ public class LangUtil {
return result;
}
+ @Deprecated
public static boolean isOnePointThreeVMOrGreater() {
return 1.3 <= vmVersion;
}
+ @Deprecated
public static boolean is1dot4VMOrGreater() {
return 1.4 <= vmVersion;
}
+ @Deprecated
public static boolean is15VMOrGreater() {
return 1.5 <= vmVersion;
}
+ @Deprecated
public static boolean is16VMOrGreater() {
return 1.6 <= vmVersion;
}
+ @Deprecated
public static boolean is17VMOrGreater() {
return 1.7 <= vmVersion;
}
diff --git a/util/src/test/java/org/aspectj/util/LangUtilTest.java b/util/src/test/java/org/aspectj/util/LangUtilTest.java
index 545cdd904..87b976957 100644
--- a/util/src/test/java/org/aspectj/util/LangUtilTest.java
+++ b/util/src/test/java/org/aspectj/util/LangUtilTest.java
@@ -101,9 +101,10 @@ public class LangUtilTest extends TestCase {
// }
public void testVersion() {
- assertTrue(LangUtil.isOnePointThreeVMOrGreater()); // min vm now - floor may change
- if (LangUtil.is15VMOrGreater()) {
- assertTrue(LangUtil.is1dot4VMOrGreater());
+ assertTrue(LangUtil.is18VMOrGreater()); // min vm now - floor may change
+ if (LangUtil.is11VMOrGreater()) {
+ assertTrue(LangUtil.is19VMOrGreater());
+ assertTrue(LangUtil.is10VMOrGreater());
}
}