summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoracolyer <acolyer>2003-02-27 19:40:45 +0000
committeracolyer <acolyer>2003-02-27 19:40:45 +0000
commite4cc72e301f462f968d195489e6a5972c50a34ae (patch)
treec933ec6ac738adbff5014afa0198e25774ad35b7
parent62ac77ecb955f9eba81bb50997bd94715cdbc8d4 (diff)
downloadaspectj-e4cc72e301f462f968d195489e6a5972c50a34ae.tar.gz
aspectj-e4cc72e301f462f968d195489e6a5972c50a34ae.zip
Update to matches to test on Kind
-rw-r--r--weaver/src/org/aspectj/weaver/patterns/SignaturePattern.java7
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);