diff options
author | acolyer <acolyer> | 2003-02-27 19:40:45 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2003-02-27 19:40:45 +0000 |
commit | e4cc72e301f462f968d195489e6a5972c50a34ae (patch) | |
tree | c933ec6ac738adbff5014afa0198e25774ad35b7 | |
parent | 62ac77ecb955f9eba81bb50997bd94715cdbc8d4 (diff) | |
download | aspectj-e4cc72e301f462f968d195489e6a5972c50a34ae.tar.gz aspectj-e4cc72e301f462f968d195489e6a5972c50a34ae.zip |
Update to matches to test on Kind
-rw-r--r-- | weaver/src/org/aspectj/weaver/patterns/SignaturePattern.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/weaver/src/org/aspectj/weaver/patterns/SignaturePattern.java b/weaver/src/org/aspectj/weaver/patterns/SignaturePattern.java index 58ada73f7..d07a2bb12 100644 --- a/weaver/src/org/aspectj/weaver/patterns/SignaturePattern.java +++ b/weaver/src/org/aspectj/weaver/patterns/SignaturePattern.java @@ -93,9 +93,16 @@ public class SignaturePattern extends PatternNode { world.getLint().unresolvableMember.signal(member.toString(), getSourceLocation()); return false; } + + // AMC test for Kind match surely??? + if (!(sig.getKind() == kind)) return false; + + if (kind == Member.ADVICE) return true; if (!modifiers.matches(sig.getModifiers())) return false; + + if (kind == Member.STATIC_INITIALIZATION) { //System.err.println("match static init: " + sig.getDeclaringType() + " with " + this); |