summaryrefslogtreecommitdiffstats
path: root/weaver/testsrc/org
diff options
context:
space:
mode:
authoraclement <aclement>2005-12-15 15:57:36 +0000
committeraclement <aclement>2005-12-15 15:57:36 +0000
commit9abfc4044b23629af408459a3a5c638d7978e443 (patch)
treef8ae2286550947dc403c7e3115bc56f1ed1898eb /weaver/testsrc/org
parentf5104819f3199b747ce9a67951457dea1aee3e01 (diff)
downloadaspectj-9abfc4044b23629af408459a3a5c638d7978e443.tar.gz
aspectj-9abfc4044b23629af408459a3a5c638d7978e443.zip
fixes for 120909 (ibmvm failures)Root_RB_V1_5_0
Diffstat (limited to 'weaver/testsrc/org')
-rw-r--r--weaver/testsrc/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegateTest.java5
-rw-r--r--weaver/testsrc/org/aspectj/weaver/reflect/ReflectionWorldTest.java6
2 files changed, 6 insertions, 5 deletions
diff --git a/weaver/testsrc/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegateTest.java b/weaver/testsrc/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegateTest.java
index fe5aaec0a..e5b830b25 100644
--- a/weaver/testsrc/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegateTest.java
+++ b/weaver/testsrc/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegateTest.java
@@ -17,6 +17,7 @@ import java.util.Set;
import junit.framework.TestCase;
+import org.aspectj.bridge.IMessageHandler;
import org.aspectj.weaver.ReferenceType;
import org.aspectj.weaver.ResolvedMember;
import org.aspectj.weaver.ResolvedType;
@@ -247,7 +248,7 @@ public class ReflectionBasedReferenceTypeDelegateTest extends TestCase {
boolean barfIfClinitMissing = false;
world.setBehaveInJava5Way(true);
- BcelWorld bcelWorld = new BcelWorld();
+ BcelWorld bcelWorld = new BcelWorld(getClass().getClassLoader(),IMessageHandler.THROW,null);
bcelWorld.setBehaveInJava5Way(true);
UnresolvedType javaUtilHashMap = UnresolvedType.forName("java.util.HashMap");
ReferenceType rawType =(ReferenceType)bcelWorld.resolve(javaUtilHashMap );
@@ -289,7 +290,7 @@ public class ReflectionBasedReferenceTypeDelegateTest extends TestCase {
// todo: array of int
protected void setUp() throws Exception {
- world = new ReflectionWorld();
+ world = new ReflectionWorld(getClass().getClassLoader());
objectType = world.resolve("java.lang.Object");
}
}
diff --git a/weaver/testsrc/org/aspectj/weaver/reflect/ReflectionWorldTest.java b/weaver/testsrc/org/aspectj/weaver/reflect/ReflectionWorldTest.java
index a38f7936b..d4729e9bf 100644
--- a/weaver/testsrc/org/aspectj/weaver/reflect/ReflectionWorldTest.java
+++ b/weaver/testsrc/org/aspectj/weaver/reflect/ReflectionWorldTest.java
@@ -19,21 +19,21 @@ import org.aspectj.weaver.World;
public class ReflectionWorldTest extends TestCase {
public void testDelegateCreation() {
- World world = new ReflectionWorld();
+ World world = new ReflectionWorld(getClass().getClassLoader());
ResolvedType rt = world.resolve("java.lang.Object");
assertNotNull(rt);
assertEquals("Ljava/lang/Object;",rt.getSignature());
}
public void testArrayTypes() {
- ReflectionWorld world = new ReflectionWorld();
+ ReflectionWorld world = new ReflectionWorld(getClass().getClassLoader());
String[] strArray = new String[1];
ResolvedType rt = world.resolve(strArray.getClass());
assertTrue(rt.isArray());
}
public void testPrimitiveTypes() {
- ReflectionWorld world = new ReflectionWorld();
+ ReflectionWorld world = new ReflectionWorld(getClass().getClassLoader());
assertEquals("int",ResolvedType.INT,world.resolve(int.class));
assertEquals("void",ResolvedType.VOID,world.resolve(void.class));
}