[webbeans-issues] [JBoss JIRA] Closed: (WBRI-185) generic producer method

Pete Muir (JIRA) jira-events at lists.jboss.org
Sun Mar 15 12:00:22 EDT 2009


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

Pete Muir closed WBRI-185.
--------------------------

    Resolution: Rejected
      Assignee: Pete Muir


It's actually a DefinitionException to return a type variable from a producer method.

"If a producer method return type contains a wildcard type parameter or type variable, a DefinitionException is thrown 
by the container at deployment time. "

> generic producer method
> -----------------------
>
>                 Key: WBRI-185
>                 URL: https://jira.jboss.org/jira/browse/WBRI-185
>             Project: Web Beans
>          Issue Type: Bug
>          Components: Producer beans
>            Reporter: Takeshi Kondo
>            Assignee: Pete Muir
>            Priority: Minor
>             Fix For: 1.0.0.PREVIEW
>
>         Attachments: generic_producer_method.patch, test_code.patch
>
>
> I want to use parameterized producer method,but It don't work,
> because producer method target is class declared method  and AnnotatedMethodImpl don't resolve TypeVariable.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the weld-issues mailing list