]> source.dussan.org Git - aspectj.git/commitdiff
Fix for: Bugzilla Bug 51919
authoraclement <aclement>
Tue, 24 Feb 2004 10:00:10 +0000 (10:00 +0000)
committeraclement <aclement>
Tue, 24 Feb 2004 10:00:10 +0000 (10:00 +0000)
   Polymorphic ITD fails in CVS HEAD (From ajdt 1.1.6)

weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java

index d3c8dc0b01f77acc7abc567a42725d26439613d3..f6ce64db5de7bc6053a157e9fc5adac2d165bd3f 100644 (file)
@@ -52,6 +52,7 @@ import org.aspectj.bridge.IMessage;
 import org.aspectj.weaver.AjAttribute;
 import org.aspectj.weaver.BCException;
 import org.aspectj.weaver.ISourceContext;
+import org.aspectj.weaver.Member;
 import org.aspectj.weaver.ResolvedTypeX;
 
 
@@ -1222,9 +1223,9 @@ public final class LazyMethodGen {
     }
     
        public String getSignature() {
-               return memberView.getSignature();
-//             return Member.typesToSignature(BcelWorld.fromBcel(getReturnType()), 
-//                                                                             BcelWorld.fromBcel(getArgumentTypes()));
+               if (memberView!=null) return memberView.getSignature();
+               return Member.typesToSignature(BcelWorld.fromBcel(getReturnType()), 
+                                                                               BcelWorld.fromBcel(getArgumentTypes()));
        }
 
        public BcelMethod getMemberView() {