Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318551 - Make throwing UncheckedIOException on response PrintWriter optional
Summary: Make throwing UncheckedIOException on response PrintWriter optional
Status: RESOLVED FIXED
Alias: None
Product: Jetty
Classification: RT
Component: server (show other bugs)
Version: 7.1.5   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: 7.1.x   Edit
Assignee: Greg Wilkins CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-01 03:50 EDT by Jan Bartel CLA
Modified: 2010-07-02 05:16 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Bartel CLA 2010-07-01 03:50:27 EDT
Our UncheckedPrintWriter impl throws runtime exception UncheckedIOException when errors occur. 

If, however, you wanted to write portable code and were correctly using the PrintWriter.checkError() method, you would still need to catch our UncheckedIOException.

We should make throwing the UncheckedIOException configurable.
Comment 1 Greg Wilkins CLA 2010-07-02 05:16:27 EDT
Added an option on the ContextHandler