Skip to content

CubaDefaultListableBeanFactory doesnt restore dependencies #3306

@VitaliiEv

Description

@VitaliiEv

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions