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

Observer resolution fails if payload is a lambda expression

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • Unscheduled
    • 2.3.2.Final, 3.0.0.Alpha15
    • Events
    • 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

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

              Dates

                Created:
                Updated: