-
Bug
-
Resolution: Done
-
Major
-
5.1.3.Final
-
None
-
None
A simple bean that has JEE resource injection and a specialization:
@ApplicationScoped public static class A { @Resource(name = "world") private String value; public String value() { return "hello " + value; } } @ApplicationScoped @Specializes public static class B extends A { }
The injection of "value" works if A and B are found via discovery. If B is provided by
an extension as follows:
void afterTypeDiscovery(@Observes AfterTypeDiscovery event, BeanManager bm) {
event.addAnnotatedType(bm.createAnnotatedType(B.class), B.class.getName());
}
then "value" is no longer injected.
This worked in 5.1.2 and fails in 5.1.3.