diff options
author | aclement <aclement> | 2004-08-02 13:43:43 +0000 |
---|---|---|
committer | aclement <aclement> | 2004-08-02 13:43:43 +0000 |
commit | 7f19ab47a3df5327c6246420354089d1db1c765f (patch) | |
tree | 79d1f7a2e5846953314175e3a8680d45bf6dfb97 /weaver | |
parent | 9aed31d18e3848c72c6963dc3a6ee4661a79add9 (diff) | |
download | aspectj-7f19ab47a3df5327c6246420354089d1db1c765f.tar.gz aspectj-7f19ab47a3df5327c6246420354089d1db1c765f.zip |
Fix for Bugzilla Bug 67774
Nullpointer-exception in pointcuts using withincode() clause
Diffstat (limited to 'weaver')
-rw-r--r-- | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java b/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java index 3c0588a39..e81c43ff2 100644 --- a/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java +++ b/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java @@ -1015,6 +1015,10 @@ public class BcelShadow extends Shadow { public Member getEnclosingCodeSignature() { if (getKind().isEnclosingKind()) { return getSignature(); + } else if (getKind() == Shadow.PreInitialization) { + // PreInit doesn't enclose code but its signature + // is correctly the signature of the ctor. + return getSignature(); } else if (enclosingShadow == null) { return getEnclosingMethod().getMemberView(); } else { |