]
Rastislav Wagner closed JBIDE-15603.
------------------------------------
verified as a part of JBIDE-13228
CDI 1.1 allows injecting bean that may have null values to a point
with primitive type
--------------------------------------------------------------------------------------
Key: JBIDE-15603
URL:
https://issues.jboss.org/browse/JBIDE-15603
Project: Tools (JBoss Tools)
Issue Type: Sub-task
Components: cdi
Reporter: Viacheslav Kabanovich
Assignee: Viacheslav Kabanovich
Labels: new_and_noteworthy
Fix For: 4.2.0.Alpha1
https://issues.jboss.org/browse/CDI-247
Consider producer and injection point.
{code}
@Produces @SomeQualifier Boolean b() {
return null;
}
{code}
{code}
@Inject @SomeQualifier boolean b;
{code}
CDI 1.0 treated that injection as a deployment problem.
CDI 1.1 lets primitive field/parameter be assigned to the default value when injected
bean has null value.