aboutsummaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authoraclement <aclement>2004-08-02 13:43:43 +0000
committeraclement <aclement>2004-08-02 13:43:43 +0000
commit7f19ab47a3df5327c6246420354089d1db1c765f (patch)
tree79d1f7a2e5846953314175e3a8680d45bf6dfb97 /weaver
parent9aed31d18e3848c72c6963dc3a6ee4661a79add9 (diff)
downloadaspectj-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.java4
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 {