[cdi-dev] [JBoss JIRA] (CDI-210) BeanManager.createBean() should use type variables instead of wildcards

Jozef Hartinger (JIRA) jira-events at lists.jboss.org
Fri Jan 13 10:42:21 EST 2012


Jozef Hartinger created CDI-210:
-----------------------------------

             Summary: BeanManager.createBean() should use type variables instead of wildcards
                 Key: CDI-210
                 URL: https://issues.jboss.org/browse/CDI-210
             Project: CDI Specification Issues
          Issue Type: Feature Request
          Components: Portable Extensions
    Affects Versions: 1.1.EDR1
            Reporter: Jozef Hartinger
             Fix For: 1.1 (Proposed)


{code}
public Bean<?> createBean(BeanAttributes<?> attributes, Class<?> beanClass, InjectionTarget<?> injectionTarget)
public Bean<?> createBean(BeanAttributes<?> attributes, Class<?> beanClass, Producer<?> producer)
{code}

I propose:

{code}
public <T> Bean<T> createBean(BeanAttributes<T> attributes, Class<T> beanClass, InjectionTarget<T> injectionTarget)
public <T> Bean<T> createBean(BeanAttributes<T> attributes, Class<?> beanClass, Producer<T> producer);
{code}

--
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