From e4cc72e301f462f968d195489e6a5972c50a34ae Mon Sep 17 00:00:00 2001 From: acolyer Date: Thu, 27 Feb 2003 19:40:45 +0000 Subject: [PATCH] Update to matches to test on Kind --- .../src/org/aspectj/weaver/patterns/SignaturePattern.java | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- 2.39.5