aboutsummaryrefslogtreecommitdiffstats
path: root/aspectj5rt
diff options
context:
space:
mode:
authorwisberg <wisberg>2005-06-08 23:35:21 +0000
committerwisberg <wisberg>2005-06-08 23:35:21 +0000
commitf65bc76fdf72ca584b534ab8ae983583c0b241f1 (patch)
tree3d335cc7b5dfcdec5466fe9203705f20514ecd6c /aspectj5rt
parent0c4e822ebe1aed1e24e271e4496d5ace41570168 (diff)
downloadaspectj-f65bc76fdf72ca584b534ab8ae983583c0b241f1.tar.gz
aspectj-f65bc76fdf72ca584b534ab8ae983583c0b241f1.zip
Java 5 guard to permit running in 1.3
Diffstat (limited to 'aspectj5rt')
-rw-r--r--aspectj5rt/testsrc/Aspectj5rtModuleTests.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/aspectj5rt/testsrc/Aspectj5rtModuleTests.java b/aspectj5rt/testsrc/Aspectj5rtModuleTests.java
index f0f6a3064..6681a2f11 100644
--- a/aspectj5rt/testsrc/Aspectj5rtModuleTests.java
+++ b/aspectj5rt/testsrc/Aspectj5rtModuleTests.java
@@ -21,7 +21,11 @@ public class Aspectj5rtModuleTests extends TestCase {
public static Test suite() {
TestSuite suite = new TestSuite("Aspectj5rt module tests");
- TestUtil.loadTestsReflectively(suite, "Aspectj5rt15ModuleTests", true);
+ if (TestUtil.is15VMOrGreater()) {
+ TestUtil.loadTestsReflectively(suite, "Aspectj5rt15ModuleTests", true);
+ } else {
+ suite.addTest(TestUtil.skipTest("for aspectj5rt that need 1.5"));
+ }
return suite;
}