cuba icon indicating copy to clipboard operation
cuba copied to clipboard

CubaDefaultListableBeanFactory doesnt restore dependencies

Open VitaliiEv opened this issue 2 years ago • 0 comments

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

VitaliiEv avatar Feb 10 '24 07:02 VitaliiEv