[cdi-dev] [JBoss JIRA] (CDI-246) CDI#current() should return CDI<Object> instead of CDI<T>

Pete Muir (JIRA) jira-events at lists.jboss.org
Tue Aug 21 09:26:15 EDT 2012


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

Pete Muir resolved CDI-246.
---------------------------

    Fix Version/s: 1.1.EDR2
                       (was: 1.1 (Proposed))
       Resolution: Done


Merged.
                
> CDI#current() should return CDI<Object> instead of CDI<T>
> ---------------------------------------------------------
>
>                 Key: CDI-246
>                 URL: https://issues.jboss.org/browse/CDI-246
>             Project: CDI Specification Issues
>          Issue Type: Bug
>    Affects Versions: 1.1.EDR1
>            Reporter: Martin Kouba
>             Fix For: 1.1.EDR2
>
>
> The reason is that it might be impossible to implement a parameterized method call like {{CDI.<Foo>current().get()}}. If {{CDI.current()}} would return {{CDI<Object>}} it would be obvious that one has to use {{CDI.current().select(Foo.class).get()}} for lookup of bean instances.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the cdi-dev mailing list