On 10/21/2012 10:47 AM, Jan Algermissen wrote:
> 2) depricate getSize()
>
> I guess 1) needs to be added and implemented by every container in any case given that we cannot deprecate getSize immediately.
>
>
> It never struck me as an issue, because I never use built-in MBWs and mine allways return -1 from getSize() but looking at this, the original design of MBWs deciding upon Content-Length vs. Chunked-Encoding as simply wrong. This is an HTTP-connector issue and should be left to that layer.
>
> Bottom line: +1 to Markus saying that 2.0 cannot be shipped without that being fixed.
>
FYI, Resteasy used to honor getSize(), but we quickly found that
something as simple as gzip encoding makes getSize() totally bogus.
I vote for deprecation and language in spec that says getSize() is now
ignored.
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com