Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1989

Infinite loop while calling not decorated method for a decorated EJB

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 4.5.1
    • None
    • None
    • None

    Description

      We have created a Decorator for an EJB. only a couple of methods are decorated.
      The special thing is that we have extended an EJB in another EJB. For sure this not nice, but the EJB spec does not explicit prevent this structure.

      When I call a method which is not implemented in the decorator but in the Bean implementation of the extended EJB, the process runs into an infinite loop in org.apache.webbeans.decorator.DelegateHandler line 97

              while (position.get().intValue() < decoratorsSize)
      

      I have attached a little maven project with the structure and a test case with 3 tests.

      • The first tests calls a method which is implemented in super EJB --> works as expected
      • The second test calls a method which is decorated through the decorator --> works as expected
      • The third test calls a method which is implemented in extended EJB --> stuck in infinite loop

      Instead of looping forever it should call the implementation of not decorated method

      Not sure if if this is a OPENEJB or OWB related issue.

      Attachments

        1. OPENEJB-1989.zip
          12 kB
          Michael Mellenthin

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mmellenthin Michael Mellenthin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: