Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001095 [tweak] Any minor always 04-21-05 19:17 04-22-05 08:34
Reporter jens View Status public  
Assigned To
Priority normal Resolution fixed  
Status resolved  
Summary 0001095: arguments of dropped change events
Description The priorEvents of a changeEvent in ScriptEvent>>withDroppedEventsDo: all refer to the same "previous value" parameter, instead of tracking the actual previous value:

foo := Foo new.
foo bar: 1; bar: 2; bar: 3.

onBarChanged: 3 from: nil
  dropped event args: 1 nil
  dropped event args: 2 nil
  dropped event args: 3 nil

but it should produce:

onBarChanged: 3 from: nil
  dropped event args: 1 nil
  dropped event args: 2 1
  dropped event args: 3 2

The attached test case demonstrates this, too.
Additional Information
Attached Files  CEventTests-testDroppedChangeEvents.st [^] (924 bytes) 04-21-05 19:17

- Relationships

- Notes
(0001408 - 18 - 18 - 18 - 18 - 18 - 18)
andreas
04-22-05 08:33

Thanks. Now fixed.
 

- Issue History
Date Modified Username Field Change
04-21-05 19:17 jens New Issue
04-21-05 19:17 jens File Added: CEventTests-testDroppedChangeEvents.st
04-22-05 08:33 andreas Status new => resolved
04-22-05 08:33 andreas Resolution open => fixed
04-22-05 08:33 andreas Assigned To  => andreas
04-22-05 08:33 andreas Note Added: 0001408
04-22-05 08:34 andreas Assigned To andreas =>


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