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

Handling exception during async event - contradiction?

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0-EDR1
    • Fix Version/s: 2.0 .Final
    • Component/s: Events
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              tremes Tomas Remes
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: