summaryrefslogtreecommitdiffstats
path: root/testing/newsrc/org
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-02-17 15:06:44 +0000
committeracolyer <acolyer>2005-02-17 15:06:44 +0000
commit4a3f3643037a0d5d37bea64beb5bae013c5168af (patch)
treeb136304451b9455aa9e8c7599e796304999f9dea /testing/newsrc/org
parent8c5754b946aa096870e894b4cca08384971267ef (diff)
downloadaspectj-4a3f3643037a0d5d37bea64beb5bae013c5168af.tar.gz
aspectj-4a3f3643037a0d5d37bea64beb5bae013c5168af.zip
better handling on a 1.4 vm
Diffstat (limited to 'testing/newsrc/org')
-rw-r--r--testing/newsrc/org/aspectj/testing/AjcTest.java2
-rw-r--r--testing/newsrc/org/aspectj/testing/CompileSpec.java3
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; }