diff options
author | Andy Clement <aclement@gopivotal.com> | 2015-03-04 16:05:27 -0800 |
---|---|---|
committer | Andy Clement <aclement@gopivotal.com> | 2015-03-04 16:05:27 -0800 |
commit | c4d7b61ef3f9e5b54f3216b049a106f2523a60a4 (patch) | |
tree | c1602049db800a33b25ac873bd04c3c0a6383ea8 /testing/newsrc | |
parent | 3869f363bc6e473f4063faf2c296825283a21f1a (diff) | |
download | aspectj-c4d7b61ef3f9e5b54f3216b049a106f2523a60a4.tar.gz aspectj-c4d7b61ef3f9e5b54f3216b049a106f2523a60a4.zip |
very early java9 support - can resolve classes in jimages
Diffstat (limited to 'testing/newsrc')
-rw-r--r-- | testing/newsrc/org/aspectj/testing/AjcTest.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testing/newsrc/org/aspectj/testing/AjcTest.java b/testing/newsrc/org/aspectj/testing/AjcTest.java index e022d1c45..57129c853 100644 --- a/testing/newsrc/org/aspectj/testing/AjcTest.java +++ b/testing/newsrc/org/aspectj/testing/AjcTest.java @@ -25,6 +25,7 @@ public class AjcTest { private static boolean is16VMOrGreater = false; private static boolean is17VMOrGreater = false; private static boolean is18VMOrGreater = false; + private static boolean is19VMOrGreater = false; static { // matching logic is also in org.aspectj.util.LangUtil String vm = System.getProperty("java.version"); // JLS 20.18.7 @@ -46,6 +47,12 @@ public class AjcTest { is16VMOrGreater = true; is17VMOrGreater = true; is18VMOrGreater = true; + } else if (vm.startsWith("1.9")) { + is15VMOrGreater = true; + is16VMOrGreater = true; + is17VMOrGreater = true; + is18VMOrGreater = true; + is19VMOrGreater = true; } } @@ -89,6 +96,7 @@ public class AjcTest { if (vmLevel.equals("1.6")) canRun = is16VMOrGreater; if (vmLevel.equals("1.7")) canRun = is17VMOrGreater; if (vmLevel.equals("1.8")) canRun = is18VMOrGreater; + if (vmLevel.equals("1.9")) canRun = is19VMOrGreater; if (!canRun) { System.out.println("***SKIPPING TEST***" + getTitle()+ " needs " + getVmLevel() + ", currently running on " + System.getProperty("java.vm.version")); |