Would anyone mind taking a look at this issue regarding the flush method on ClosedOutputStream?
https://issues.apache.org/jira/browse/IO-546 The change is relatively trivial and the attached patch includes a test case. I understand the impact is significant but I think it would make ClosedOutputStream behave more consistently with what a user would expect. – Tomas Celaya