[PATCH] JDK-8054565: FilterOutputStream.close may throw IOException if called twice and underlying flush or close fails

roger riggs roger.riggs at oracle.com
Thu Dec 4 14:40:24 UTC 2014


Hi Nathan,

This list removes attachments.
Can the diff's be inlined in the email?

Thanks, Roger

On 12/4/2014 1:18 AM, Nathan Clement wrote:
> Hi,
>
> Here is my suggested fix for the FilterOuputStream issue in JDK-8054565.  I have been running this fix in my applications for several weeks (by adding it to the bootstrap classpath) and it solves my issue.  The fix creates a new member field to remember whether close has already been called on the stream, and if so, close() does nothing.
>
> Attached is the output from hg diff -g
>
> This is my first attempt at a patch for OpenJDK, so please let me know if I need to change anything.
>
> Thanks,
>
> Nathan
>   		 	   		




More information about the core-libs-dev mailing list