[jbosstools-issues] [JBoss JIRA] (JBIDE-15603) CDI 1.1 allows injecting bean that may have null values to a point with primitive type
Alexey Kazakov (JIRA)
jira-events at lists.jboss.org
Wed Oct 2 14:37:02 EDT 2013
[ https://issues.jboss.org/browse/JBIDE-15603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Kazakov updated JBIDE-15603:
-----------------------------------
Parent: JBIDE-13228
Issue Type: Sub-task (was: Task)
> 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 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