Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Native Promise Support for JAX-RS Resources #2955

Open
bjhargrave opened this issue Sep 10, 2018 · 1 comment
Open

Native Promise Support for JAX-RS Resources #2955

bjhargrave opened this issue Sep 10, 2018 · 1 comment

Comments

@bjhargrave
Copy link
Member

Original bug ID: BZ#3087
From: @timothyjward
Reported version: R7

@bjhargrave
Copy link
Member Author

Comment author: @timothyjward

The JAX-RS 2.1 specification added support for "Reactive" types such as the CompletableFuture. The JAX-RS Whiteboard specification uses this pluggable support to add Promises as a reactive type in the JAX-RS client, but overlooked the support for Promises as a native return type from resource methods.

The next specification update should require Promises to have the same level of support as CompletableFuture/CompletionStage when returned from resource methods.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant