[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-8736) Sometimes injections do not resolve to produced bean with restricted generic type

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Fri Apr 15 16:17:33 EDT 2011


     [ https://issues.jboss.org/browse/JBIDE-8736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Viacheslav Kabanovich updated JBIDE-8736:
-----------------------------------------

    Attachment: JBIDE-8736.patch


> Sometimes injections do not resolve to produced bean with restricted generic type
> ---------------------------------------------------------------------------------
>
>                 Key: JBIDE-8736
>                 URL: https://issues.jboss.org/browse/JBIDE-8736
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: cdi (jsr-299)
>    Affects Versions: 3.2.0.Final
>            Reporter: Viacheslav Kabanovich
>            Assignee: Viacheslav Kabanovich
>             Fix For: 3.2.1, 3.3.0.M1
>
>         Attachments: JBIDE-8736.patch
>
>
> Injection point is not resolved in the following case:
> {code}
> public class Test {
>     @Produces @Typed(List.class)
>     private ArrayList<Boolean> producer = new ArrayList<Boolean>();
> 	   
>     @Inject
>     List<Boolean> injected;
> }
> {code}
> For the current implementation, it is important here that List and ArrayList are library types. If a generic type and subtype defined in local project are used, then injection is resolved.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list