diff options
author | aclement <aclement> | 2005-05-05 08:28:54 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-05-05 08:28:54 +0000 |
commit | b9474d5ca841efebd356d1823927b29f0cb03e2b (patch) | |
tree | c703f45e7e0b3e0b39313f54fb3e1bf017c1a7bc | |
parent | f292196ce4b9400d07c8092f9d6dc63f55d17cbc (diff) | |
download | aspectj-b9474d5ca841efebd356d1823927b29f0cb03e2b.tar.gz aspectj-b9474d5ca841efebd356d1823927b29f0cb03e2b.zip |
Can check vm level now.
-rw-r--r-- | org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java b/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java index 02a5028c4..a3311ef1b 100644 --- a/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java +++ b/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java @@ -52,6 +52,19 @@ public class AjcTestCase extends TestCase { private RunResult lastRunResult; + protected static boolean is13VMOrGreater = true; + protected static boolean is14VMOrGreater = true; + protected static boolean is15VMOrGreater = false; + + static { + String vm = System.getProperty("java.vm.version"); + if (vm.startsWith("1.3")) { + is14VMOrGreater = false; + } else if (vm.startsWith("1.5")) { + is15VMOrGreater = true; + } + } + /** * The Ajc (compiler) instance used for thet test. Created afresh * during the test setup. |