aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/src/org/aspectj/util/LangUtil.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/src/org/aspectj/util/LangUtil.java b/util/src/org/aspectj/util/LangUtil.java
index d9003328b..5fb251f89 100644
--- a/util/src/org/aspectj/util/LangUtil.java
+++ b/util/src/org/aspectj/util/LangUtil.java
@@ -90,6 +90,7 @@ public class LangUtil {
private static boolean is13VMOrGreater = true;
private static boolean is14VMOrGreater = true;
private static boolean is15VMOrGreater = false;
+ private static boolean is16VMOrGreater = false;
static {
String vm = System.getProperty("java.version"); // JLS 20.18.7
@@ -99,12 +100,14 @@ public class LangUtil {
is14VMOrGreater = false;
} else if (vm.startsWith("1.5") || vm.startsWith("1.6")) {
is15VMOrGreater = true;
+ is16VMOrGreater = true;
}
}
public static boolean is13VMOrGreater() { return is13VMOrGreater;}
public static boolean is14VMOrGreater() { return is14VMOrGreater;}
public static boolean is15VMOrGreater() { return is15VMOrGreater;}
+ public static boolean is16VMOrGreater() { return is16VMOrGreater;}
/**
* Shorthand for "if null, throw IllegalArgumentException"