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

IllegalArgumentException on wildcard event selection

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 2.2.5.Final
    • None
    • None

    Description

      event.select(new TypeLiteral<List<? extends Number>>() {});
      

      throws

      org.jboss.weld.exceptions.IllegalArgumentException: WELD-000819: Cannot provide an event type parameterized with a type parameter java.util.List<? extends java.lang.Number>
      

      event though the spec limits event types only to

      If the specified type contains a type variable, an IllegalArgumentException is thrown.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tzwoenn Sven Linstaedt (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: