From e9329e91f4e62b8280d70a0e4f0b7ff6e6a67b53 Mon Sep 17 00:00:00 2001 From: wisberg Date: Thu, 18 Aug 2005 05:02:47 +0000 Subject: Using JLS 20.18.7 system property for version per mailing list request --- util/src/org/aspectj/util/LangUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util/src') 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; -- cgit v1.2.3