-
Bug
-
Resolution: Done
-
Major
-
1.1.5.Final, 2.0.0.Alpha3
-
None
-
None
Suppose this legal scenario (see 5.5.7. Injection point metadata) with SLSB bean Foo and request scoped bean Bar.
@Stateless public class Foo { @Inject InjectionPoint injectionPoint; } @RequestScoped public class Bar { @Inject Foo foo; }
Field Foo#injectionPoint is null.
However the question is whether injection of InjectionPoint on SLSB should be possible. I think it may lead to inconsistencies - SLSB should not have any state as it is usually pooled and reused for every invocation.
- is related to
-
CDI-243 SLSBs must currently be @Dependent in CDI, however this is not really a good match
- Closed