]> source.dussan.org Git - aspectj.git/commitdiff
address ITD problem - have to change LazyClassGen back to use BcelMethods directly...
authoraclement <aclement>
Thu, 29 May 2008 04:47:16 +0000 (04:47 +0000)
committeraclement <aclement>
Thu, 29 May 2008 04:47:16 +0000 (04:47 +0000)
weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java

index 989d8ba6a03e88f6fae8ee4ff6297292bf7c346c..2111a300a66c8b7b34fcdc58bff2f650acf5894c 100644 (file)
@@ -303,12 +303,18 @@ public final class LazyClassGen {
                }
                }
 
-           Method[] methods = myGen.getMethods();
-        for (int i = 0; i < methods.length; i++) {
-            addMethodGen(new LazyMethodGen(methods[i], this));
-        }
 
-               ResolvedMember[] fields = myType.getDeclaredFields();
+               ResolvedMember[] methods = myType.getDeclaredMethods();
+               for (int i=0; i<methods.length; i++) {
+                       addMethodGen(new LazyMethodGen((BcelMethod)methods[i],this));
+               }
+               
+        // Method[] methods = myGen.getMethods();
+        // for (int i = 0; i < methods.length; i++) {
+        // addMethodGen(new LazyMethodGen(methods[i], this));
+        // }
+
+        ResolvedMember[] fields = myType.getDeclaredFields();
                for (int i=0; i<fields.length; i++) {
                        this.fields.add((BcelField)fields[i]);
                }