aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorAndy Clement <aclement@gopivotal.com>2013-07-29 11:19:02 -0700
committerAndy Clement <andrew.clement@gmail.com>2013-07-29 12:05:09 -0700
commit38206a5304739c5e986c26e71186b74db0a5af5b (patch)
tree5da23736fef0e082b37eeee4e21342ebd0e590bc /util
parent302c14ee680d5782cba619d8cc748e60afd09561 (diff)
downloadaspectj-38206a5304739c5e986c26e71186b74db0a5af5b.tar.gz
aspectj-38206a5304739c5e986c26e71186b74db0a5af5b.zip
AspectJ 1.8
Diffstat (limited to 'util')
-rw-r--r--util/src/org/aspectj/util/LangUtil.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/util/src/org/aspectj/util/LangUtil.java b/util/src/org/aspectj/util/LangUtil.java
index 7a7149698..cf929b7b5 100644
--- a/util/src/org/aspectj/util/LangUtil.java
+++ b/util/src/org/aspectj/util/LangUtil.java
@@ -74,7 +74,7 @@ public class LangUtil {
try {
String versionString = vm.substring(0, 3);
Double temp = new Double(Double.parseDouble(versionString));
- vmVersion = temp.floatValue();
+ vmVersion = temp.doubleValue();
} catch (Exception e) {
vmVersion = 1.4;
}
@@ -106,6 +106,10 @@ public class LangUtil {
public static boolean is17VMOrGreater() {
return 1.7 <= vmVersion;
}
+
+ public static boolean is18VMOrGreater() {
+ return 1.8 <= vmVersion;
+ }
/**
* Shorthand for "if null, throw IllegalArgumentException"