users@servlet-spec.java.net

[servlet-spec users] [jsr340-experts] Re: SERVLET_SPEC-10: Character encoding setting after ServletResponse#reset

From: Mark Thomas <markt_at_apache.org>
Date: Tue, 10 Jan 2012 09:39:07 +0000

On 10/01/2012 08:14, Shing Wai Chan wrote:
> (A) and (B) seems to less complicated as there are no stale objects, but
> cannot switch the use of writer and outputstream.
> Any comments?

C is my preference. Reasons:
- this is the change I have seen requested by users and I have seen no
requests for A or B
- it is simpler for users to understand, simpler to document and simpler
to implement
- the stale objects issue does not concern me providing we document that
use of those objects after a reset results in undefined behaviour

Mark