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

IllegalArgumentException on wildcard event selection

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 2.2.5.Final
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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

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

                Dates

                Created:
                Updated:
                Resolved: