[jax-rs-spec users] [jsr339-experts] The origin of MessageBodyWriter - when to check

From: Sergey Beryozkin <>
Date: Thu, 25 Apr 2013 16:01:57 +0100

Hi Santiago, All,

The specification says:

"An implementation MUST support application-provided entity providers
and MUST use those in prefer-
ence to its own pre-packaged providers when either could handle the same

We have a failing test. An application provider, typed on Object, is
written to support some specific types like Boolean, InputStream, etc,
and its isWritebale & isReadable checks that a given Object is of the
supported type and returns true if yes, false if not.

The test still expects that the shipped/pre-packaged provider
(presumably typed for example on Boolean or InputStream) is chosen.

The question boils down to what is the order of the 'origin' key. Does
the specification mean that it is a tertiary key ? If yes then I'm
accepting the test is valid, if not - concluding it is not.

Thanks, Sergey