Skip to content

AopUtils.getMostSpecificMethod should expose dynamic proxy class methods [SPR-16757] #21298

Closed
@spring-projects-issues

Description

@spring-projects-issues

Juergen Hoeller opened SPR-16757 and commented

After the changes for #21218AopUtils.getMostSpecificMethod does not resolve proxy class methods anymore. It turns out that this is a regression for some scenarios, in particular for dynamic proxies as targets with their redeclaration of all interface methods at the most specific level. In order for Method.getDeclaringClass() to expose the concrete type again in such scenarios, we should rather revisit that algorithm to not specifically handle proxy class methods, just consistently skipping resolution for CGLIB cases (in particular configuration classes and lookup-method classes) as we did in a few places before already.


Affects: 5.0.5

Issue Links:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions