]> source.dussan.org Git - aspectj.git/commitdiff
AspectJ6: copes with 1.6 environment
authoraclement <aclement>
Wed, 16 Jan 2008 23:52:10 +0000 (23:52 +0000)
committeraclement <aclement>
Wed, 16 Jan 2008 23:52:10 +0000 (23:52 +0000)
util/src/org/aspectj/util/LangUtil.java

index d9003328b519936ba72941e2d136808c9099b7e3..5fb251f89c48f7449306fe4cfa2e1646d11a1c51 100644 (file)
@@ -90,6 +90,7 @@ public class LangUtil {
        private static boolean is13VMOrGreater = true;
        private static boolean is14VMOrGreater = true;
        private static boolean is15VMOrGreater = false;
+       private static boolean is16VMOrGreater = false;
        
        static {
         String vm = System.getProperty("java.version"); // JLS 20.18.7
@@ -99,12 +100,14 @@ public class LangUtil {
                        is14VMOrGreater = false;
                } else if (vm.startsWith("1.5") || vm.startsWith("1.6")) {      
                        is15VMOrGreater = true;
+                       is16VMOrGreater = true;
                }
        }
        
        public static boolean is13VMOrGreater() { return is13VMOrGreater;}
        public static boolean is14VMOrGreater() { return is14VMOrGreater;}
        public static boolean is15VMOrGreater() { return is15VMOrGreater;}
+       public static boolean is16VMOrGreater() { return is16VMOrGreater;}
     
     /**
      * Shorthand for "if null, throw IllegalArgumentException"