[squeak-dev] Re: OrderedCollection bug?

Steven W Riggins mailinglists at geeksrus.com
Wed Jul 16 07:47:45 UTC 2008

Thanks! Was along the lines I was looking at, but I was not sure of  
the intended behavior.

On Jul 15, 2008, at 11:15 PM, Andreas Raab wrote:

> I've posted a fix at:
>  http://bugs.squeak.org/view.php?id=7121
> Cheers,
>  - Andreas
> Steven W Riggins wrote:
>> Hi there!
>> We're running Sophie in a 3.8 image, and ran into a fairly nasty  
>> OrderedCollection bug.  I've not tried to replicate this in later  
>> images.
>> o := OrderedCollection new.
>> o add: true beforeIndex: 2.
>> If you do this, the resulting collection is (nil)
>> No error, and true is not in the collection.
>> Can someone verify if this still exists, or what the proper  
>> behavior is?
>> Back Story:  When "saving as" our page templates, the code  
>> determines that some actions are not needed, but it still writes  
>> them into the new collection based on their old index.  So you end  
>> up with a nil object in the collection, missing the object you  
>> intended to be there, and a silent failure to boot.
>> We'll clean up our usage of OrderedCollection, but shouldn't this  
>> at least throw an error?
>> Steve

More information about the Squeak-dev mailing list