From 4a3f3643037a0d5d37bea64beb5bae013c5168af Mon Sep 17 00:00:00 2001 From: acolyer Date: Thu, 17 Feb 2005 15:06:44 +0000 Subject: better handling on a 1.4 vm --- testing/newsrc/org/aspectj/testing/AjcTest.java | 2 +- testing/newsrc/org/aspectj/testing/CompileSpec.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'testing') 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; } -- cgit v1.2.3