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 04:59:33 UTC

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

Antonin Stefanutti created OWB-1018:
---------------------------------------

             Summary: 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
    Affects Versions: 1.5.0
            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)