Mantis - Squeak
Viewing Issue Advanced Details
2390 Collections major always 12-20-05 10:50 04-18-10 22:05
hilaire  
nicolas cellier  
normal  
closed 3.8  
fixed  
none    
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 

Notes
(0012859)
Keith_Hodges   
12-17-08 04:27   
Still throws an error in 3.10.2bc. Fix still required.
(0013008)
nicolas cellier   
03-05-09 19:39   
"fix begin"
Installer mantis ensureFix: 7269.
"fix end"
(0013075)
nicolas cellier   
04-03-09 18:44   
I checked the fix works in a virgin Squeak3.10.2-7179-basic.image
(0013271)
nicolas cellier   
08-24-09 20:09   
Fixed in http://source.squeak.org/trunk/Collections-nice.116.mcz [^]