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)

Reply via email to