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

Observer resolution fails if payload is a lambda expression

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • Unscheduled
    • 2.3.2.Final, 3.0.0.Alpha15
    • Events
    • None

      When using a lambda in an event payload. Parameter types are lost when resolving observers.

      For instance:

          @Inject
          Event<Supplier<String>> stringSupplierEvent;
      ...
          Supplier<String> stringSupplier = () -> "Hello world";
          stringSupplierEvent.fire(stringSupplier);
      

      will triggers an observer for Supplier but not an observer for Supplier<String>

            Unassigned Unassigned
            asabotdu@redhat.com Antoine Sabot-Durand (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: