[jbosstools-issues] [JBoss JIRA] (JBIDE-15603) CDI 1.1 allows injecting bean that may have null values to a point with primitive type

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Wed Oct 2 14:30:02 EDT 2013


Viacheslav Kabanovich created JBIDE-15603:
---------------------------------------------

             Summary: 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: Task
          Components: cdi
            Reporter: Viacheslav Kabanovich
            Assignee: Viacheslav Kabanovich
             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.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list