]> source.dussan.org Git - aspectj.git/commitdiff
Can check vm level now.
authoraclement <aclement>
Thu, 5 May 2005 08:28:54 +0000 (08:28 +0000)
committeraclement <aclement>
Thu, 5 May 2005 08:28:54 +0000 (08:28 +0000)
org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java

index 02a5028c4ea9f421714fb6132b7239db822c3a03..a3311ef1b54fe2b38b9d7fc7fb48a3df87936d70 100644 (file)
@@ -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.