[jax-rs-spec users] [jsr339-experts] Re: get rid of getSize/Length

From: Marek Potociar <>
Date: Fri, 15 Jun 2012 12:41:48 +0200

Hi Bill,
as with the other suggestion please, file an issue (if not done yet already).


On May 31, 2012, at 10:02 AM, Sergey Beryozkin wrote:

>> * MessageBodyWriter.getSize() should be deprecated and maybe have its
>> language changed so that the value returned here is ignored, or at
>> least, future implementations should always return -1. The reason for
>> this is that the MBW should have full control on whether a
>> Content-Length header is set or not and the JAX-RS runtime should not
>> set this.