Issue #4269 - Restoring PrintWriter contract on errors
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
parent
b119a8f59f
commit
c0866ebeae
|
@ -128,10 +128,13 @@ public class ResponseWriter extends PrintWriter
|
||||||
private void isOpen() throws IOException
|
private void isOpen() throws IOException
|
||||||
{
|
{
|
||||||
if (_ioException != null)
|
if (_ioException != null)
|
||||||
throw new RuntimeIOException(_ioException);
|
throw _ioException;
|
||||||
|
|
||||||
if (_isClosed)
|
if (_isClosed)
|
||||||
throw new EofException("Stream closed");
|
{
|
||||||
|
_ioException = new EofException("Stream closed");
|
||||||
|
throw _ioException;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue