Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-1018

Resolution regression for producer method with parameterized return type with a type variable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 1.5.0
    • None
    • None

    Description

      Given the following producer method:

      @Produces
      <T> Gauge<T> gaugeProducer() {};
      

      And the following injection point:

      @Inject
      Gauge<Long> gauge;
      

      An UnsatisfiedResolutionException is thrown.

      This is a regression and contradicts with the CDI specification:

      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

      Attachments

        Activity

          People

            struberg Mark Struberg
            antonin.stefanutti Antonin Stefanutti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: