You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2015/07/29 12:28:05 UTC

[jira] [Closed] (OWB-1018) Resolution regression for producer method with parameterized return type with a type variable

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

Mark Struberg closed OWB-1018.
------------------------------
    Assignee: Mark Struberg

> Resolution regression for producer method with parameterized return type with a type variable
> ---------------------------------------------------------------------------------------------
>
>                 Key: OWB-1018
>                 URL: https://issues.apache.org/jira/browse/OWB-1018
>             Project: OpenWebBeans
>          Issue Type: Bug
>            Reporter: Antonin Stefanutti
>            Assignee: Mark Struberg
>            Priority: Blocker
>             Fix For: 1.5.0
>
>
> Given the following producer method:
> {code}
> @Produces
> <T> Gauge<T> gaugeProducer() {};
> {code}
> And the following injection point:
> {code}
> @Inject
> Gauge<Long> gauge;
> {code}
> An {{UnsatisfiedResolutionException}} is thrown.
> This is a regression and contradicts with the CDI specification:
> {quote}
> the required type parameter is an actual type, the bean type parameter is a type variable and the actual type is assignable to the upper bound, if any, of the type variable
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)