Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
If an EJB overrides a method of a base class with a narrowed return type, OpenEJB runs the method on the dynamic proxy instead of the EJB class.
I have prepared a slightly modified version of the DemoApp that is created by the maven-tomes-plugin that shows the effect.
If you run it on tomee and try to list the available books, you get an NPE in BookService.getAllBooks() and the System.err-Stream shows the message:
> getAllBooks called on class de.nobiscum.mff.bridgemethodbug.application.BookService$$LocalBeanProxy