RFR [7021870] GzipInputStream closes underlying stream during reading (original) (raw)
Mike Duigou mike.duigou at oracle.com
Fri May 10 18:03:38 UTC 2013
- Previous message: RFR [7021870] GzipInputStream closes underlying stream during reading
- Next message: RFR [7021870] GzipInputStream closes underlying stream during reading
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The fix looks reasonable to me.
Mike
On May 10 2013, at 01:03 , Ivan Gerasimov wrote:
Hello everybody!
GzipInputStream uses SequenceInputStream to concatenate the underlying stream with some data that reside in memory. SequenceInputStream is implementing in such a way that it closes the stream when it reaches EOS. The solution is to wrap the underlying stream with extended FilterInputStream that overrides the close() method. BUG: http://bugs.sun.com/bugdatabase/viewbug.do?bugid=7021870 WEBREV: http://cr.openjdk.java.net/~dmeetry/7021870/webrev.0/ <http://cr.openjdk.java.net/%7Edmeetry/7021870/webrev.0/> Sincerely your, Ivan
- Previous message: RFR [7021870] GzipInputStream closes underlying stream during reading
- Next message: RFR [7021870] GzipInputStream closes underlying stream during reading
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]