summaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2003-05-19 18:06:04 +0000
committerjhugunin <jhugunin>2003-05-19 18:06:04 +0000
commit2072ac11448e493e26ab7ff818ce26c6ef33c19c (patch)
tree54f5535acef911434dcfa15d6386f3b51b3ffb0d /weaver
parent8463bc6ed6ac00e71a09b9a3738c3aa5619f529f (diff)
downloadaspectj-2072ac11448e493e26ab7ff818ce26c6ef33c19c.tar.gz
aspectj-2072ac11448e493e26ab7ff818ce26c6ef33c19c.zip
fix and test Bugzilla Bug 37739
Unexpected Xlint:unresolvableMember warning with withincode
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/bcel/BcelShadow.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java b/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java
index c91731e0e..058231bab 100644
--- a/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java
+++ b/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java
@@ -828,9 +828,12 @@ public class BcelShadow extends Shadow {
}
}
+ //??? need to better understand all the enclosing variants
public Member getEnclosingCodeSignature() {
- if (enclosingShadow == null) {
+ if (getKind().isEnclosingKind()) {
return getSignature();
+ } else if (enclosingShadow == null) {
+ return getEnclosingMethod().getMemberView();
} else {
return enclosingShadow.getSignature();
}