Skip to content

Commit

Permalink
ArC intercepted subclasses - skip non-bridge synthetic methods
Browse files Browse the repository at this point in the history
  • Loading branch information
mkouba committed Feb 3, 2023
1 parent d36c7db commit d0aa755
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,9 @@ public boolean test(MethodInfo method) {
// Skip bridge methods that have a corresponding "implementation method" on the same class
// The algorithm we use to detect these methods is best effort, i.e. there might be use cases where the detection fails
return hasImplementation(method);
} else if (method.isSynthetic()) {
// Skip non-bridge synthetic methods
return true;
}
if (method.hasAnnotation(DotNames.POST_CONSTRUCT) || method.hasAnnotation(DotNames.PRE_DESTROY)) {
// @PreDestroy and @PostConstruct methods declared on the bean are NOT candidates for around invoke interception
Expand Down

0 comments on commit d0aa755

Please sign in to comment.