Mantis - Squeak
Viewing Issue Advanced Details
3498 Tools minor always 04-24-06 03:00 04-26-06 11:15
nicolas cellier  
 
normal  
closed 3.9  
fixed  
none    
none 3.9  
0003498: MessageTally fail to open result window [DNU] UndefinedObject contractTo:
This one fail:

| m |
m := MethodDictionary allInstances asSortedCollection: [:a :b | a size > b size].
MessageTally spyOn: [1 to: 10 do: [:i | (m at: i) rehash]]

This one does not fail:

| m |
m := MethodDictionary allInstances asSortedCollection: [:a :b | a size > b size].
MessageTally spyOn: [(1 to: 10) do: [:i | (m at: i) rehash]]

It must have something to do with open-coded messages in bytecode...

Notes
(0004780)
tim   
04-24-06 03:23   
Just tried this in a 3.9a7024 imag and both cases produce the expected tally window with no problem.
(0004782)
nicolas cellier   
04-24-06 04:50   
OK, a virgin image does not show it.
it is my correction of http://bugs.impara.de/view.php?id=3448 [^] in ParagraphEditor>>evaluateSelection that caused the problem.

It seem that the path i used does not fill correctly the last but one literal MethodProperties, thus making selector nil instead of #DoIt...
Problem does not show when using parenthesis, because UndefinedObject>>DoIt is replaced with Interval>>do: in the leaves...

So this one is closed concerning MessageTally.
But i can charge
    ParagraphEditor>>compileSelectionFor:in:
that fail to call:
    method selector ifNil: [method selector: #DoIt].
(0004815)
MarcusDenker   
04-26-06 11:15   
no bug