[FIX] StreamClosedFix

avi at beta4.com avi at beta4.com
Fri Aug 29 01:36:28 UTC 2003


from preamble:

"Change Set:		StreamClosedFix
Date:			28 August 2003
Author:			Avi Bryant

Stream implements #closed for compatibility with FileStream.  However,
this method is inconsistently implemented in the Stream hierarchy:
ReadWriteStream implements it to return false, as does
GZipSurrogateStream, but the abstract Stream superclass implements it to
return true.

This means, in particular, that ReadStreams are always considered
closed, which leads to problems when using them with ZipArchive.

This changeset modifies Stream>>closed to return false.  There may be
some reason this is a bad idea, but I'm submitting this fix to at least
start the discussion.
"!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: StreamClosedFix.cs.gz
Type: application/octet-stream
Size: 511 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20030828/06474e97/StreamClosedFix.cs.obj


More information about the Squeak-dev mailing list