diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/newsrc/org/aspectj/testing/AjcTest.java | 2 | ||||
-rw-r--r-- | testing/newsrc/org/aspectj/testing/CompileSpec.java | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/testing/newsrc/org/aspectj/testing/AjcTest.java b/testing/newsrc/org/aspectj/testing/AjcTest.java index 6662b1561..c1c88cd85 100644 --- a/testing/newsrc/org/aspectj/testing/AjcTest.java +++ b/testing/newsrc/org/aspectj/testing/AjcTest.java @@ -70,7 +70,7 @@ public class AjcTest { } } - private boolean canRunOnThisVM() { + public boolean canRunOnThisVM() { if (vmLevel.equals("1.3")) return true; boolean canRun = true; if (vmLevel.equals("1.4")) canRun = is14VMOrGreater; diff --git a/testing/newsrc/org/aspectj/testing/CompileSpec.java b/testing/newsrc/org/aspectj/testing/CompileSpec.java index 6f28ab31c..93d0e2bb5 100644 --- a/testing/newsrc/org/aspectj/testing/CompileSpec.java +++ b/testing/newsrc/org/aspectj/testing/CompileSpec.java @@ -68,6 +68,9 @@ public class CompileSpec implements ITestStep { public void setTest(AjcTest t) { this.myTest = t; + if (options != null && (options.indexOf("-1.5") != -1)) { + myTest.setVm("1.5"); + } } protected AjcTest getTest() { return myTest; } |