Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-3812

BeanInfo not reset when new bean looked up

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.0
    • Fix Version/s: 2.7.3, 2.8.0
    • Component/s: camel-core
    • Labels:
      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)))

      { beanInfo = null; }

        Activity

        Hide
        davsclaus Claus Ibsen added a comment -

        Thanks for reporting.

        Show
        davsclaus Claus Ibsen added a comment - Thanks for reporting.
        Show
        davsclaus Claus Ibsen added a comment - See nabble http://camel.465427.n5.nabble.com/camel-ejb-problem-td4258807.html

          People

          • Assignee:
            davsclaus Claus Ibsen
            Reporter:
            maximilien Maximilien Wiktorowski
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development