aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authoraclement <aclement>2008-01-16 23:48:07 +0000
committeraclement <aclement>2008-01-16 23:48:07 +0000
commit919bd9c7a93c5e7e0deac5564f5a707971354d99 (patch)
tree2b117d30f848eada72ba4426c327d8b41e82d55e /testing
parent53e5bb5938412a4c6488b59a2b129ec354678329 (diff)
downloadaspectj-919bd9c7a93c5e7e0deac5564f5a707971354d99.tar.gz
aspectj-919bd9c7a93c5e7e0deac5564f5a707971354d99.zip
AspectJ6: copes with 1.6 environment
Diffstat (limited to 'testing')
-rw-r--r--testing/newsrc/org/aspectj/testing/AjcTest.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/testing/newsrc/org/aspectj/testing/AjcTest.java b/testing/newsrc/org/aspectj/testing/AjcTest.java
index 04ef81eae..2ddf9184b 100644
--- a/testing/newsrc/org/aspectj/testing/AjcTest.java
+++ b/testing/newsrc/org/aspectj/testing/AjcTest.java
@@ -28,6 +28,7 @@ public class AjcTest {
private static boolean is13VMOrGreater = true;
private static boolean is14VMOrGreater = true;
private static boolean is15VMOrGreater = false;
+ private static boolean is16VMOrGreater = false;
static { // matching logic is also in org.aspectj.util.LangUtil
String vm = System.getProperty("java.version"); // JLS 20.18.7
@@ -37,6 +38,9 @@ public class AjcTest {
is14VMOrGreater = false;
} else if (vm.startsWith("1.5")) {
is15VMOrGreater = true;
+ } else if (vm.startsWith("1.6")) {
+ is15VMOrGreater = true;
+ is16VMOrGreater = true;
}
}
@@ -78,6 +82,7 @@ public class AjcTest {
boolean canRun = true;
if (vmLevel.equals("1.4")) canRun = is14VMOrGreater;
if (vmLevel.equals("1.5")) canRun = is15VMOrGreater;
+ if (vmLevel.equals("1.6")) canRun = is16VMOrGreater;
if (!canRun) {
System.out.println("***SKIPPING TEST***" + getTitle()+ " needs " + getVmLevel()
+ ", currently running on " + System.getProperty("java.vm.version"));