BeanInfo not reset when new bean looked up
------------------------------------------
Key: CAMEL-3812
URL: https://issues.apache.org/jira/browse/CAMEL-3812
Project: Camel
Issue Type: Bug
Components: camel-core
Affects Versions: 2.7.0
Reporter: Maximilien Wiktorowski
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)))
{
beanInfo = null;
}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira