Mantis - Squeak
Viewing Issue Advanced Details
2390 Collections major always 12-20-05 10:50 04-18-10 22:05
nicolas cellier  
closed 3.8  
none trunk  
0002390: ReadWriteStream with an OrderedCollection bugs when growing
The following code raise an error

|myColl myStream|
myColl := OrderedCollection ofSize: 10.
myStream := ReadWriteStream on: myColl.
(1 to: 15) do: [:i|myStream nextPut: 1].

The problem comes from the OrderColleciton new: message used when growing the collection.

Possible solutions:

Replace in ReadWriteStream pastEndPut:
new: wtih sizeOf:

Or better rewrite OrderedCollection new: so it does not produce an empty collection.
related to 0007269closed nicolas cellier OrderedCollection streamContents broken 

12-17-08 04:27   
Still throws an error in 3.10.2bc. Fix still required.
nicolas cellier   
03-05-09 19:39   
"fix begin"
Installer mantis ensureFix: 7269.
"fix end"
nicolas cellier   
04-03-09 18:44   
I checked the fix works in a virgin Squeak3.10.2-7179-basic.image
nicolas cellier   
08-24-09 20:09   
Fixed in [^]