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

Observer resolution fails if payload is a lambda expression

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.3.2.Final, 3.0.0.Alpha15
    • Fix Version/s: Unscheduled
    • Component/s: Events
    • Labels:
      None

      Description

      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>

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              antoinesabot-durand Antoine Sabot-Durand (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: