diff options
author | Andy Clement <aclement@pivotal.io> | 2017-09-22 15:17:54 -0700 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2017-09-22 15:17:54 -0700 |
commit | faac3d84e254d747076dc258f9a059839946a274 (patch) | |
tree | 80b1490eb76c266169efed6a6e1ef70e4cacf328 /util | |
parent | e136805cb6db5243307cb6579cd2cfe84f87c2e6 (diff) | |
download | aspectj-faac3d84e254d747076dc258f9a059839946a274.tar.gz aspectj-faac3d84e254d747076dc258f9a059839946a274.zip |
various changes to make more tests pass on Java9
Diffstat (limited to 'util')
-rw-r--r-- | util/src/org/aspectj/util/LangUtil.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/util/src/org/aspectj/util/LangUtil.java b/util/src/org/aspectj/util/LangUtil.java index 0f19124a9..08c2da43a 100644 --- a/util/src/org/aspectj/util/LangUtil.java +++ b/util/src/org/aspectj/util/LangUtil.java @@ -42,6 +42,13 @@ public class LangUtil { private static double vmVersion; + /** + * @return the vm version (1.1, 1.2, 1.3, 1.4, etc) + */ + public static String getVmVersionString() { + return Double.toString(vmVersion); + } + static { StringWriter buf = new StringWriter(); PrintWriter writer = new PrintWriter(buf); |