]> source.dussan.org Git - aspectj.git/commitdiff
Fix Spring issue 27761
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Mon, 21 Aug 2023 10:37:56 +0000 (17:37 +0700)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Mon, 21 Aug 2023 10:58:47 +0000 (17:58 +0700)
Fixes spring-projects/spring-framework#27761.
Fixes #256.

Bridge methods are now ignored in favour of their overriding namesakes
during method matching.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
org.aspectj.matcher/src/main/java/org/aspectj/weaver/ResolvedType.java

index b0069d840cc6817cd57a7d5e3148e6eba69b5927..55a48e59a0af59efac32aad8b784ef2580a3f409 100644 (file)
@@ -647,7 +647,7 @@ public abstract class ResolvedType extends UnresolvedType implements AnnotatedEl
                                }
                        }
                        // OPTIMIZE speed up matches? optimize order of checks
-                       if (candidate.matches(aMember, eraseGenerics)) {
+                       if (candidate.matches(aMember, eraseGenerics) && !candidate.isBridgeMethod()) {
                                found = candidate;
                                break;
                        }