[cdi-dev] [JBoss JIRA] (CDI-548) FireAsyncException conflicting with CompletionStage definition

Antoine Sabot-Durand (JIRA) issues at jboss.org
Thu Jul 28 09:49:02 EDT 2016


     [ https://issues.jboss.org/browse/CDI-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antoine Sabot-Durand updated CDI-548:
-------------------------------------
    Fix Version/s: 2.0 (proposed)


> FireAsyncException conflicting with CompletionStage definition
> --------------------------------------------------------------
>
>                 Key: CDI-548
>                 URL: https://issues.jboss.org/browse/CDI-548
>             Project: CDI Specification Issues
>          Issue Type: Clarification
>          Components: Events
>    Affects Versions: 2.0-EDR1
>            Reporter: Jozef Hartinger
>             Fix For: 2.0 (proposed)
>
>
> CompletionStage documentation says:
> {quote}
> 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 {@link CompletionException} holding the exception as its cause.
> {quote}
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the cdi-dev mailing list