Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002390 [Squeak] Collections major always 12-20-05 10:50 04-18-10 22:05
Reporter hilaire View Status public  
Assigned To nicolas cellier
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version trunk Product Version 3.8
  Product Build
Summary 0002390: ReadWriteStream with an OrderedCollection bugs when growing
Description 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.
Steps To Reproduce
Additional Information
Attached Files

- Relationships
related to 0007269closed nicolas cellier OrderedCollection streamContents broken 

- Notes
(0012859 - 54 - 54 - 54 - 54 - 54 - 54)
Keith_Hodges
12-17-08 04:27

Still throws an error in 3.10.2bc. Fix still required.
 
(0013008 - 57 - 89 - 89 - 89 - 89 - 89)
nicolas cellier
03-05-09 19:39

"fix begin"
Installer mantis ensureFix: 7269.
"fix end"
 
(0013075 - 65 - 65 - 65 - 65 - 65 - 65)
nicolas cellier
04-03-09 18:44

I checked the fix works in a virgin Squeak3.10.2-7179-basic.image
 
(0013271 - 64 - 64 - 224 - 224 - 224 - 224)
nicolas cellier
08-24-09 20:09

Fixed in http://source.squeak.org/trunk/Collections-nice.116.mcz [^]
 

- Issue History
Date Modified Username Field Change
12-20-05 10:50 hilaire New Issue
12-20-05 11:58 pmm Issue Monitored: pmm
09-20-07 16:37 BGaertner Issue Monitored: BGaertner
12-17-08 04:27 Keith_Hodges Note Added: 0012859
12-17-08 04:27 Keith_Hodges Status new => feedback
03-05-09 19:39 nicolas cellier Note Added: 0013008
04-03-09 18:44 nicolas cellier Note Added: 0013075
04-04-09 20:29 wiz Relationship added related to 0007269
08-24-09 20:09 nicolas cellier Note Added: 0013271
09-03-09 21:10 nicolas cellier Status feedback => resolved
09-03-09 21:10 nicolas cellier Fixed in Version  => trunk
09-03-09 21:10 nicolas cellier Resolution open => fixed
09-03-09 21:10 nicolas cellier Assigned To  => nicolas cellier
04-18-10 22:05 andreas Status resolved => closed


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
64 total queries executed.
44 unique queries executed.
Powered by Mantis Bugtracker