aboutsummaryrefslogtreecommitdiffstats
path: root/util/src
diff options
context:
space:
mode:
Diffstat (limited to 'util/src')
-rw-r--r--util/src/main/java/org/aspectj/util/LangUtil.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/src/main/java/org/aspectj/util/LangUtil.java b/util/src/main/java/org/aspectj/util/LangUtil.java
index 82bd9426b..ee77556c8 100644
--- a/util/src/main/java/org/aspectj/util/LangUtil.java
+++ b/util/src/main/java/org/aspectj/util/LangUtil.java
@@ -161,6 +161,10 @@ public class LangUtil {
return 11 <= vmVersion;
}
+ public static boolean is12VMOrGreater() {
+ return 12 <= vmVersion;
+ }
+
/**
* Shorthand for "if null, throw IllegalArgumentException"
*