From 3e1783bc03e372ad8957e5e24e41b5c7d0e7dd26 Mon Sep 17 00:00:00 2001 From: avasseur Date: Tue, 26 Apr 2005 08:54:13 +0000 Subject: fix local build so that test run with 1.5 fix Adrian test that were having some assumption on ordering which happens to fail with my 1.5 compiler --- aspectj5rt/build.xml | 8 ++++++-- .../testsrc/org/aspectj/internal/lang/reflect/AjTypeTests.java | 6 ++++-- 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 @@ - - + + + + + + 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 = 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 { -- cgit v1.2.3