Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1060

Any bean type with identical raw type is assignable to a parameterized required type with type variable parameter

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.0.0.Alpha3
    • None
    • Resolution
    • None

    Description

      5.2.3. Assignability of raw and parameterized types:
      "A parameterized bean type is considered assignable to a parameterized required type if they have identical raw type and for each parameter

      • ...
      • the required type parameter and the bean type parameter are both type variables and the upper bound of the required type parameter is assignable to the upper bound, if any, of the bean type parameter."

      See org.jboss.cdi.tck.tests.lookup.typesafe.resolution.parameterized.AssignabilityOfRawAndParameterizedTypesTest.testAssignabilityOfParameterizedTypeWithTypeVariablesToParameterizedTypeTypeVariable()

      Attachments

        Activity

          People

            rhn-engineering-jharting Jozef Hartinger
            mkouba@redhat.com Martin Kouba
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: