aboutsummaryrefslogtreecommitdiffstats
path: root/util/src
diff options
context:
space:
mode:
Diffstat (limited to 'util/src')
-rw-r--r--util/src/org/aspectj/util/LangUtil.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/src/org/aspectj/util/LangUtil.java b/util/src/org/aspectj/util/LangUtil.java
index d33e54d99..fa831c457 100644
--- a/util/src/org/aspectj/util/LangUtil.java
+++ b/util/src/org/aspectj/util/LangUtil.java
@@ -92,7 +92,8 @@ public class LangUtil {
private static boolean is15VMOrGreater = false;
static {
- String vm = System.getProperty("java.runtime.version");
+ String vm = System.getProperty("java.version"); // JLS 20.18.7
+ if (vm==null) vm = System.getProperty("java.runtime.version");
if (vm==null) vm = System.getProperty("java.vm.version");
if (vm.startsWith("1.3")) {
is14VMOrGreater = false;