jsr340-experts@servlet-spec.java.net

[jsr340-experts] Re: Candidate for Servlet 3.1 Early draft review

From: Shing Wai Chan <shing.wai.chan_at_oracle.com>
Date: Mon, 05 Mar 2012 14:22:23 -0800

On 2/29/12 1:41 AM, Minoru Nitta wrote:
> Hi,
>
> Some trivial feedback.
>
> Return value type of javax.servlet.ServletRequest#getContentLength
> should be long not int, because Servlet has handled big data recently.
>
> Changing return value type could cause problems so we should consider
> (1)changing return value type or (2) adding a new method (e.g.
> getContentLengthLong) whose return type is long.
(1) will break backward compatibility.
>
> There are some typos in EDR (Servlet#int -> Servlet#init).
I have fixed the typo in the spec.
Thanks.
Shing Wai Chan
>
>
> Thank you.
> Minoru
>
>