From 680d359a56125663245a8ef6a15f907213c37362 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 29 Jul 2004 15:06:11 +0000 Subject: [PATCH] Now ITDs are reflected correctly in the structure model. Made getSignature() more bullet proof in the case of incorrect programs. --- .../ajdt/internal/compiler/ast/InterTypeDeclaration.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeDeclaration.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeDeclaration.java index 869460f56..6efe2dd75 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeDeclaration.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeDeclaration.java @@ -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; -- 2.39.5