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

CubaDefaultListableBeanFactory doesnt restore dependencies #3306

Open
VitaliiEv opened this issue Feb 10, 2024 · 0 comments
Open

CubaDefaultListableBeanFactory doesnt restore dependencies #3306

VitaliiEv opened this issue Feb 10, 2024 · 0 comments

Comments

@VitaliiEv
Copy link

Environment

  • Platform version: 7.2.19

Description of the bug or enhancement

  • Minimal reproducible example
    When registering new bean definition in place of existing one, CUBA platform don't fully restore dependencies.
    Suspected code
    It seems that a call to super.resetBeanDefinition(beanName); on line 77 modifies dependencies not only for current bean, but for dependant beans also. On a next recursive call, getDependentBeans(beanName) returns modified dependant beans list, so in some cases dependencies are not fully restored.

  • Expected behavior
    all bean dependencies restored

  • Actual behavior
    not all dependencies restored

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant