Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-543

Handling exception during async event - contradiction?

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0 .Final
    • 2.0-EDR1
    • Events
    • None

      In 10.5. Observer notification there is (wrt sync observer method):

      Otherwise, the exception aborts processing of the event. No other observer methods of that event will be called

      This looks like contradiction to 10.5.1. Handling multiple exceptions thrown during an asynchronous event where is:

      If an event is asynchronous, and an exception is thrown by any of its notified observers, the CompletionStage returned by fireAsync will complete exceptionally ..

      The question is following: Async Event is fired -> some sync observers are notified -> one of them throws exception -> async observers will be notified or not?
      I assume they should be notified and therefore 10.5. Observer notification needs an update.

              Unassigned Unassigned
              tremes1@redhat.com Tomas Remes
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: