camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-3812) BeanInfo not reset when new bean looked up
Date Mon, 28 Mar 2011 09:39:06 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-3812?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen resolved CAMEL-3812.
--------------------------------

    Resolution: Fixed

Thanks for reporting.

> 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
>            Assignee: Claus Ibsen
>             Fix For: 2.8.0
>
>
> 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

Mime
View raw message