aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authoraclement <aclement>2004-07-29 15:06:11 +0000
committeraclement <aclement>2004-07-29 15:06:11 +0000
commit680d359a56125663245a8ef6a15f907213c37362 (patch)
treef164f4afee9c5164da040666f912e199b5fa7e7d /org.aspectj.ajdt.core
parentead60730f87d1eeb644a9a4c9dcdcfe85ac0b240 (diff)
downloadaspectj-680d359a56125663245a8ef6a15f907213c37362.tar.gz
aspectj-680d359a56125663245a8ef6a15f907213c37362.zip
Now ITDs are reflected correctly in the structure model. Made getSignature() more bullet proof in the case of incorrect programs.
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeDeclaration.java5
1 files changed, 4 insertions, 1 deletions
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;