summaryrefslogtreecommitdiffstats
path: root/weaver/testsrc/org
diff options
context:
space:
mode:
authoraclement <aclement>2006-04-06 11:45:02 +0000
committeraclement <aclement>2006-04-06 11:45:02 +0000
commit1a6f69583137f03d2a8052148a17eebe8e79e162 (patch)
tree7f500202f7254b3e2db306c7e826d87b800a8683 /weaver/testsrc/org
parent94d8b82fbf3cb18a14d77508b3adad6d50434080 (diff)
downloadaspectj-1a6f69583137f03d2a8052148a17eebe8e79e162.tar.gz
aspectj-1a6f69583137f03d2a8052148a17eebe8e79e162.zip
test and fix for 135001
Diffstat (limited to 'weaver/testsrc/org')
-rw-r--r--weaver/testsrc/org/aspectj/weaver/bcel/AsmDelegateTests.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/weaver/testsrc/org/aspectj/weaver/bcel/AsmDelegateTests.java b/weaver/testsrc/org/aspectj/weaver/bcel/AsmDelegateTests.java
index 8a6f78e67..146a5ba2b 100644
--- a/weaver/testsrc/org/aspectj/weaver/bcel/AsmDelegateTests.java
+++ b/weaver/testsrc/org/aspectj/weaver/bcel/AsmDelegateTests.java
@@ -57,8 +57,10 @@ public class AsmDelegateTests extends AbstractWorldTestCase {
// --- testcode
public void testWeDontGoBang() {
+ world.fallbackToLoadingBcelDelegatesForAspects = false;
ResolvedType rt = world.resolve("SimpleAspect");
ReferenceTypeDelegate delegate = ((ReferenceType)rt).getDelegate();
+
assertTrue("Should be an ASM delegate but is "+delegate.getClass(),
delegate.getClass().toString().equals("class org.aspectj.weaver.asm.AsmDelegate"));
}
@@ -392,8 +394,10 @@ public class AsmDelegateTests extends AbstractWorldTestCase {
* Load up the AspectFromHell and take it apart...
*/
public void testLoadingAttributesForTypes() {
- BcelWorld slowWorld = new BcelWorld(BcweaverTests.TESTDATA_PATH+"/forAsmDelegateTesting/stuff.jar");slowWorld.setFastDelegateSupport(false);
+ BcelWorld slowWorld = new BcelWorld(BcweaverTests.TESTDATA_PATH+"/forAsmDelegateTesting/stuff.jar");
+ slowWorld.setFastDelegateSupport(false);
BcelWorld fastWorld = new BcelWorld(BcweaverTests.TESTDATA_PATH+"/forAsmDelegateTesting/stuff.jar");
+ fastWorld.fallbackToLoadingBcelDelegatesForAspects = false;
ReferenceType bcelT = (ReferenceType)slowWorld.resolve("AspectFromHell");
ReferenceType asmT = (ReferenceType)fastWorld.resolve("AspectFromHell");
@@ -416,7 +420,8 @@ public class AsmDelegateTests extends AbstractWorldTestCase {
boolean debug = false;
BcelWorld slowWorld = new BcelWorld(BcweaverTests.TESTDATA_PATH+"/forAsmDelegateTesting/stuff.jar");slowWorld.setFastDelegateSupport(false);
BcelWorld fastWorld = new BcelWorld(BcweaverTests.TESTDATA_PATH+"/forAsmDelegateTesting/stuff.jar");
-
+ fastWorld.fallbackToLoadingBcelDelegatesForAspects = false;
+
ReferenceType bcelT = (ReferenceType)slowWorld.resolve("AspectFromHell");
ReferenceType asmT = (ReferenceType)fastWorld.resolve("AspectFromHell");