From 8cbcae72de6f0b2b8bca9d63edd10ae04982e94f Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 21 Apr 2006 17:56:42 +0000 Subject: [PATCH] fix for 137496: problem with join point matching on calls to parameterized methods --- weaver/src/org/aspectj/weaver/ResolvedType.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weaver/src/org/aspectj/weaver/ResolvedType.java b/weaver/src/org/aspectj/weaver/ResolvedType.java index bfb7be4c5..d220bcb0c 100644 --- a/weaver/src/org/aspectj/weaver/ResolvedType.java +++ b/weaver/src/org/aspectj/weaver/ResolvedType.java @@ -345,6 +345,9 @@ public abstract class ResolvedType extends UnresolvedType implements AnnotatedEl while (i.hasNext()) { ResolvedMember f = (ResolvedMember) i.next(); if (matches(f, m)) return f; + if (f.hasBackingGenericMember() && m.getName().equals(f.getName())) { // might be worth checking the method behind the parameterized method (see pr137496) + if (matches(f.getBackingGenericMember(),m)) return f; + } } return null; //ResolvedMember.Missing; //throw new BCException("can't find " + m); -- 2.39.5