]> source.dussan.org Git - aspectj.git/commitdiff
optimizationasm: has to force that it wants a modifiable (bcel) delegate
authoraclement <aclement>
Wed, 22 Feb 2006 15:24:23 +0000 (15:24 +0000)
committeraclement <aclement>
Wed, 22 Feb 2006 15:24:23 +0000 (15:24 +0000)
weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java

index 60d91fc4e2de9cae3124918f4b60bf5ee4886c2b..3d485ab027e965f72a46ceac35e36868e3056b78 100644 (file)
@@ -221,7 +221,9 @@ public final class LazyClassGen {
 
         BcelWorld world = new BcelWorld(path);
 
-        LazyClassGen clazz = new LazyClassGen(BcelWorld.getBcelObjectType(world.resolve(name)));
+        UnresolvedType ut = UnresolvedType.forName(name);
+        ut.setNeedsModifiableDelegate(true);
+        LazyClassGen clazz = new LazyClassGen(BcelWorld.getBcelObjectType(world.resolve(ut)));
         clazz.print(out);
         out.println();
     }