aboutsummaryrefslogtreecommitdiffstats
path: root/aspectj5rt
diff options
context:
space:
mode:
Diffstat (limited to 'aspectj5rt')
-rw-r--r--aspectj5rt/build.xml8
-rw-r--r--aspectj5rt/testsrc/org/aspectj/internal/lang/reflect/AjTypeTests.java6
2 files changed, 10 insertions, 4 deletions
diff --git a/aspectj5rt/build.xml b/aspectj5rt/build.xml
index 24d8cf7ad..f4a718ff5 100644
--- a/aspectj5rt/build.xml
+++ b/aspectj5rt/build.xml
@@ -26,8 +26,12 @@
</target>
<target name="test:compile" depends="compile" if="jdk15">
- <!-- TODO: if test relies on 1.5 source, then needs to override below -->
- <testcompile project="aspectj5rt" path="aspectj5rt.test.src.path"/>
+ <mkdir dir="../aspectj5rt/bintest"/>
+ <javac debug="on" destdir="../aspectj5rt/bintest" source="1.5" target="1.5">
+ <src path="../aspectj5rt/testsrc"/>
+ <classpath refid="aspectj5rt.test.src.path"/>
+ <classpath path="../aspectj5rt/bin"/>
+ </javac>
</target>
<target name="test" depends="test:compile" if="jdk15">
diff --git a/aspectj5rt/testsrc/org/aspectj/internal/lang/reflect/AjTypeTests.java b/aspectj5rt/testsrc/org/aspectj/internal/lang/reflect/AjTypeTests.java
index bae481e72..04a987bf4 100644
--- a/aspectj5rt/testsrc/org/aspectj/internal/lang/reflect/AjTypeTests.java
+++ b/aspectj5rt/testsrc/org/aspectj/internal/lang/reflect/AjTypeTests.java
@@ -116,8 +116,10 @@ public class AjTypeTests extends TestCase {
AjType<Foo> foo = AjTypeSystem.getAjType(Foo.class);
AjType[] fooTypes = foo.getDeclaredAjTypes();
assertEquals(2,fooTypes.length);
- assertEquals("org.aspectj.internal.lang.reflect.Foo$Z",fooTypes[0].getName());
- assertEquals("org.aspectj.internal.lang.reflect.Foo$XX",fooTypes[1].getName());
+ // Alex -> Adrian: looks like you can not make assumption on the ordering
+ String s = " " + fooTypes[0].getName() + " " + fooTypes[1].getName();
+ assertTrue(s.indexOf(" org.aspectj.internal.lang.reflect.Foo$Z") >= 0);
+ assertTrue(s.indexOf(" org.aspectj.internal.lang.reflect.Foo$XX") >= 0);
}
public void testGetConstructor() throws Exception {