[FIX] AddAllFix-ac

andrew at beta4.com andrew at beta4.com
Wed Aug 6 23:11:13 UTC 2003


from preamble:

"Change Set:		AddAllFix-ac
Date:			6 August 2003
Author:			Andrew Catton

Fixed bug where:

someCollection addAll: someCollection

causes an infinite loop.  

- #addAll*: methods now use a copy of the parameter if it is the same as
the receiver.  
- The old behavior was moved to #basicAddAll*: variants.  
- #basicAddAll: is used by SortedCollection>>copy to avoid an
#addAll:->#copy->#addAll: infinite loop when adding a collection to
itself.
- Removed OrderedCollection>>addAll: as it didn't actually change the
semantics inherited from Collection>>addAll: and would have required a
further override on SortedCollection had it remained."!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AddAllFix-ac.cs.gz
Type: application/octet-stream
Size: 1034 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20030806/e8af8961/AddAllFix-ac.cs.obj


More information about the Squeak-dev mailing list