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
Attachments
Issue Links
- is blocked by
-
OWB-759 Decorator position not well managed if the decorator is abstract
- Closed