Camel
  1. Camel
  2. CAMEL-3812

BeanInfo not reset when new bean looked up

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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

        Maximilien Wiktorowski created issue -
        Show
        Claus Ibsen added a comment - See nabble http://camel.465427.n5.nabble.com/camel-ejb-problem-td4258807.html
        Claus Ibsen made changes -
        Field Original Value New Value
        Assignee Claus Ibsen [ davsclaus ]
        Fix Version/s 2.8.0 [ 12316226 ]
        Hide
        Claus Ibsen added a comment -

        Thanks for reporting.

        Show
        Claus Ibsen added a comment - Thanks for reporting.
        Claus Ibsen made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Claus Ibsen <davsclaus@apache.org> committed 04e40271c169a8a68b296d96e68b1e7a5d6c080c (1 file)
        Reviews: none

        CAMEL-3812: Fixed issue with resetting BeanInfo if bean has changed
        git-svn-id: https://svn.apache.org/repos/asf/camel/trunk@1086165 13f79535-47bb-0310-9956-ffa450edef68

        Claus Ibsen committed 1086165 (1 file)
        Reviews: none

        CAMEL-3812: Fixed issue with resetting BeanInfo if bean has changed

        J. Daniel Kulp <dkulp@apache.org> committed 8aac86e71785b4b4bb5b9da15c9175558e8e83b0 (1 file)
        Reviews: none

        Merged revisions 1086165 via svnmerge from https://svn.apache.org/repos/asf/camel/trunk
        ........
          r1086165 | davsclaus | 2011-03-28 05:38:23 -0400 (Mon, 28 Mar 2011) | 1 line
          
          CAMEL-3812: Fixed issue with resetting BeanInfo if bean has changed
        ........


        git-svn-id: https://svn.apache.org/repos/asf/camel/branches/camel-2.7.x@1144434 13f79535-47bb-0310-9956-ffa450edef68

        Daniel Kulp committed 1144434 (2 files)
        Reviews: none

        Merged revisions 1086165 via svnmerge from
        https://svn.apache.org/repos/asf/camel/trunk

        ........
          r1086165 | davsclaus | 2011-03-28 05:38:23 -0400 (Mon, 28 Mar 2011) | 1 line
          
          CAMEL-3812: Fixed issue with resetting BeanInfo if bean has changed
        ........

        Daniel Kulp made changes -
        Fix Version/s 2.7.3 [ 12316520 ]
        Daniel Kulp made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development