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

FireAsyncException conflicting with CompletionStage definition

    Details

    • Type: Clarification
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: 2.0-EDR1
    • Fix Version/s: 2.0 .Final
    • Component/s: Events
    • Labels:
      None

      Description

      CompletionStage documentation says:

      if a stage's computation terminates abruptly with an (unchecked) exception or error, then all dependent stages requiring its completion complete exceptionally as well, with a

      Unknown macro: {@link CompletionException}

      holding the exception as its cause.

      On the other hand, the CDI spec suggests that if an observer notification fails, the CompletionStage fails with FireAsyncException directly (not wrapped within CompletionException). This creates a conflict as the CDI spec uses the CompletionStage API without fully conforming to its contract.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jharting Jozef Hartinger
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: