]> source.dussan.org Git - aspectj.git/commitdiff
Now ITDs are reflected correctly in the structure model. Made getSignature() more...
authoraclement <aclement>
Thu, 29 Jul 2004 15:06:11 +0000 (15:06 +0000)
committeraclement <aclement>
Thu, 29 Jul 2004 15:06:11 +0000 (15:06 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeDeclaration.java

index 869460f5614dc8a84fed8e34b045a67157c3ae18..6efe2dd755743717d1ef0b87925b2d624d2619e5 100644 (file)
@@ -140,7 +140,10 @@ public abstract class InterTypeDeclaration extends MethodDeclaration {
 
        protected abstract Shadow.Kind getShadowKindForBody();
        
-       public ResolvedMember getSignature() { return munger.getSignature(); }
+       public ResolvedMember getSignature() { 
+               if (munger==null) return null; // Can be null in an erroneous program I think
+               return munger.getSignature(); 
+       }
 
        public char[] getDeclaredSelector() {
                return declaredSelector;