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

SPR-7582 - Rebuild Advisor chain when interceptor list is updated in ProxyFactoryBean #1477

Closed
wants to merge 1 commit into from

Conversation

marijnm
Copy link

@marijnm marijnm commented Jul 16, 2017

When getObject() on ProxyFactoryBean is called it might not be
fully initialized yet, leading to an exception. This is fine, but
the empty Advisor chain is never rebuilt, not even after initialization
has finished. This leads to 'no-op' proxies which don't do anything.

Issue: SPR-7582

When getObject() on ProxyFactoryBean is called it might not be
fully initialized yet, leading to an exception. This is fine, but
the empty Advisor chain is never rebuilt, not even after initialization
has finished. This leads to 'no-op' proxies which don't do anything.

Issue: SPR-7582
@snicoll snicoll changed the title Rebuild Advisor chain when interceptor list is updated in ProxyFactoryBean SPR-7582 - Rebuild Advisor chain when interceptor list is updated in ProxyFactoryBean Jul 17, 2017
@iarroyo
Copy link

iarroyo commented Dec 18, 2017

+1

@adperezmorales
Copy link

I faced the same problem while using constructor injection of proxies in proxies. I sorted it out using targetName in ProxyFactoryBean instead of target referencing the bean, because changing bean order definition is not always possible. This fix can be helpful in many situations

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jan 24, 2019
@rstoyanchev rstoyanchev added the in: core Issues in core modules (aop, beans, core, context, expression) label Nov 11, 2021
@jhoeller jhoeller self-assigned this Dec 7, 2021
@jhoeller jhoeller added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Dec 7, 2021
@jhoeller jhoeller added this to the 5.3.14 milestone Dec 7, 2021
@jhoeller
Copy link
Contributor

On review, we're going with a simpler change (just covering late initialization, not re-initialization) for the original report #12238. Thanks for the pull request, in any case, and sorry that it took so long...

@jhoeller jhoeller closed this Dec 13, 2021
@jhoeller jhoeller removed this from the 5.3.14 milestone Dec 13, 2021
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: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants