Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.7.0
-
None
Description
In camel-bean, when a bean is looked-up and it is not the same bean as the previous one beanInfo has to be reset.
This is done in getBean() method of org.apache.camel.component.bean.RegistryBean but the test is placed after setting bean=value so beanInfo is never reset :
if (value != bean) {
bean = value;
processor = null;
if (!ObjectHelper.equal(ObjectHelper.type(bean), ObjectHelper.type(value)))