[jbosstools-issues] [JBoss JIRA] (JBIDE-15603) CDI 1.1 allows injecting bean that may have null values to a point with primitive type
Rastislav Wagner (JIRA)
issues at jboss.org
Mon Aug 11 04:32:31 EDT 2014
[ https://issues.jboss.org/browse/JBIDE-15603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
More information about the jbosstools-issues
mailing list