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

IllegalArgumentException on wildcard event selection

XMLWordPrintable

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

      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.

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

                Created:
                Updated:
                Resolved: