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

Bean type assignability for recursive generic types

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 5.1.1.Final
    • 5.1.0.Final
    • Resolution
    • None

    Description

      There is a corner case in which assignability doesn't work and I believe that it should according to spec.

      Given a producer method for type <T extends Comparable<T> List<T>, an injection point List<String> should be valid but this currently doesn't work.

       

      Inspired by Quarkus issue - https://github.com/quarkusio/quarkus/pull/29450

      Attachments

        Activity

          People

            manovotn Matěj Novotný
            manovotn Matěj Novotný
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: