Mantis - Squeak
Viewing Issue Advanced Details
7136 Collections minor always 07-28-08 20:32 04-18-10 22:05
nicolas cellier  
andreas  
normal  
closed 3.10  
fixed  
none    
none trunk  
0007136: [BUG] LinkedList add:after: fails to update lastLink

Just browse LinkedList>>#add:before: and see how it cares to update firstLink.

Now browse LinkedList>>#add:after: and see how it fails to update lastLink.

I will provide a trivial test
    (just try and use addLast: after a add:after: last)
and a trivial fix
    (just test otherLink == lastLink ifTrue: [^self addLast: aLink]).
 LinkedList-addafter-Test-M7136-nice.1.cs [^] (985 bytes) 07-28-08 20:40
 LinkedList-addafter-Patch-M7136-nice.1.cs [^] (666 bytes) 07-28-08 20:40

Notes
(0012419)
nicolas cellier   
07-28-08 20:41   
"fix begin"
Installer mantis bug: 7136 fix:'LinkedList-addafter-Patch-M7136-nice.1.cs'.
"fix test"
Installer mantis bug: 7136 fix:'LinkedList-addafter-Test-M7136-nice.1.cs'.
"fix end"
(0012522)
MarcusDenker   
08-25-08 09:49   
fixed in pharo 10064
(0013261)
nicolas cellier   
08-24-09 20:00   
Fixed in http://source.squeak.org/trunk/Collections-nice.104.mcz [^]