So at first the description of this issue is not very clear. The reproducer is unnecessary unnecessarily complicated. Why don't you remove all the EJB, JMS, JPA stuff and simply create easy reproducer isolating the problem? Anyway I've tried to isolate the code which I guess is the problem. The test is available here https://github.com/tremes/core/tree/my-1.1. The problematic behaviour of InjectionPoint.getBean() occurs for injection points of Instance<T> where the get() method is not called.
|