Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support in AopUtils for obtaining target class transitively when target is an AopProxy [SPR-7074] #11734

Closed
spring-projects-issues opened this issue Apr 7, 2010 · 2 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Apr 7, 2010

Luke Taylor opened SPR-7074 and commented

See SEC-1454. Methods like AopUtils.getMostSpecificMethod(method, target) do not currently take account of the situation where the target is a proxy.


Affects: 3.0.2

Issue Links:

Referenced from: commits 87e3277

1 votes, 1 watchers

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

I've introduced an AopProxyUtils.ultimateTargetClass method for this purpose, traversing nested Advised objects with SingletonTargetSources as well. Note that other TargetSources won't be traversed because even introspecting the target object would cause a side effect...

Juergen

@spring-projects-issues
Copy link
Collaborator Author

Pether Sorling commented

Thanks, Will test it as soon as the snapshots have been updated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants