[ 
https://issues.apache.org/jira/browse/OWB-161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joe Bergmark updated OWB-161:
-----------------------------

    Attachment: OWB-161.txt

Looking into this in more detail, it appears that producers methods do not have 
the same problem.  I noticed that createProducerComponent passed the generic 
type into DefinitionUtil.defineProducerMethodApiTypes.

This patch includes an equivalent change to createProducerFieldComponent to 
pass the generic type of the field.

> Producer fields do not honor generics
> -------------------------------------
>
>                 Key: OWB-161
>                 URL: https://issues.apache.org/jira/browse/OWB-161
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Injection and Lookup
>            Reporter: Joe Bergmark
>            Assignee: Gurkan Erdogdu
>            Priority: Minor
>         Attachments: OWB-161.txt
>
>
> Currently a producer field defined with a parameterized type will be injected 
> in cases where the types do not match.
> For example:
> private @Produces LinkedList<Double> producerList = new LinkedList<Double>();
> will be a candidate for injection into:
> @Inject LinkedList<Integer> myList;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to