You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Antonin Stefanutti (JIRA)" <ji...@apache.org> on 2014/10/03 17:27:33 UTC

[jira] [Resolved] (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 ]

Antonin Stefanutti resolved OWB-1018.
-------------------------------------
    Resolution: Fixed

I remove affect and flxed version as it only occured in {{1.5.0-SNAPSHOT}} for a limited time period.

> 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
>            Priority: Blocker
>
> 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)