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

Michael Mellenthin updated OPENEJB-1989:
----------------------------------------

    Attachment: OPENEJB-1989.zip
    
> Infinite loop while calling not decorated method for a decorated EJB
> --------------------------------------------------------------------
>
>                 Key: OPENEJB-1989
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1989
>             Project: OpenEJB
>          Issue Type: Bug
>    Affects Versions: 4.5.1
>            Reporter: Michael Mellenthin
>            Priority: Critical
>         Attachments: OPENEJB-1989.zip
>
>
> 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
> {code}
>         while (position.get().intValue() < decoratorsSize)
> {code}
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to