Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Throwing NoContentException when InputStream is empty
Since JAX-RS 2.1 an MBR must react upon an empty stream either with an empty instance or with NoContentException, but Jersey's JSON-B MBR does neither - it simply throws ProcessingException: "In case the entity input stream is empty, the reader is expected to either return a Java representation of a zero-length entity or throw a javax.ws.rs.core.NoContentException in case no zero-length entity representation is defined for the supported Java type." Signed-off-by: Markus KARG <markus@headcrashing.eu>
- Loading branch information