[jax-rs-spec users] [jsr339-experts] Re: Re: Re: HEADS-UP: Revise MBR selection mechanism?

From: Bill Burke <>
Date: Thu, 24 May 2012 13:44:36 -0400

On 5/24/12 12:37 PM, Sergey Beryozkin wrote:
> That effectively makes isReadable, isWritable useless. Some
> 'well-behaved' providers may have written in its isReadable:
> if (InputStream.class == class || isPrimitive(class)) {
> return false;
> }

Ooops! Your isReadable() forgot the possibility of ByteBuffer, byte[],
char[] (arrays aren't primitive types),,,
and DataSource. Not to mention any other possible custom low-level
types somebody might want to add: i.e. Netty's or Mina's ChannelBuffer,
Resteasy's MarshalledEntity, etc. etc. etc.


Bill Burke
JBoss, a division of Red Hat