aboutsummaryrefslogtreecommitdiffstats
path: root/util/src
diff options
context:
space:
mode:
authoraclement <aclement>2008-01-16 23:52:10 +0000
committeraclement <aclement>2008-01-16 23:52:10 +0000
commitf80db137d0f13461973eb7907c4881a3f49b71c1 (patch)
treeeda84edb8d476a797a2751bcc1b6549f96d6ee74 /util/src
parent023d696a3cdd1e713d4d16c7fe9b39d996294cdb (diff)
downloadaspectj-f80db137d0f13461973eb7907c4881a3f49b71c1.tar.gz
aspectj-f80db137d0f13461973eb7907c4881a3f49b71c1.zip
AspectJ6: copes with 1.6 environment
Diffstat (limited to 'util/src')
-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"