[cdi-dev] [JBoss JIRA] (CDI-210) BeanManager.createBean() should use type variables instead of wildcards
Pete Muir (JIRA)
jira-events at lists.jboss.org
Fri Aug 17 07:30:14 EDT 2012
[ https://issues.jboss.org/browse/CDI-210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pete Muir updated CDI-210:
--------------------------
Issue Type: Bug (was: Feature Request)
Priority: Minor (was: Major)
> 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: Bug
> Components: Portable Extensions
> Affects Versions: 1.1.EDR1
> Reporter: Jozef Hartinger
> Priority: Minor
> 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