SYSTEM WARNING: Creating default object from empty value

Mantis - Squeak
Viewing Issue Advanced Details
6482 Kernel minor always 05-11-07 22:39 04-18-10 22:05
nicolas cellier  
andreas  
normal  
closed 3.9  
fixed  
none    
none trunk  
0006482: [BUG] Interval storeOn: incorrect for some ScaledDecimal
Some ScaledDecimal have more bits than printed.
Example: 0.5s1 squared will print 0.2s1
However 0.5s1 squared * 4 = 1

Thus (0 to: 1 by: 0.5s1 squared) size = 5
(0 0.25 0.5 0.75 1)

If you storeString and reinterpret, you get size 6
(0 0.2 0.4 0.6 0.8 1.0)
Interval SHOULD use storeOn: and not rely on Number>>printOn:

This is some sort of violation of encapsulation.
And it is defeated by introduction of a new species of Number (ScaledDecimal)...

Note that ScaledDecimal storeOn: has to be patched first
see bug 0004378
related to 0004378closed andreas ScaledDecimal storeString incorrectly use printOn: and loose exactness 
related to 0006696assigned andreas ScaledDecimal can read in base 16 but cannot print in base 16 
child of 0007002new  The Mother of all issues involving interval 
 Interval-storeOn-Test.1.cs [^] (412 bytes) 05-11-07 22:47
 Interval-storeOn-Patch.1.cs [^] (337 bytes) 05-11-07 22:47

Notes
(0011564)
Keith_Hodges   
12-17-07 17:06   
"fix begin"
Installer mantis ensureFix: 4378.
Installer mantis bug: 6482 fix:'Interval-storeOn-Patch.1.cs'.
"fix test"
Installer mantis bug: 6482 fix:'Interval-storeOn-Test.1.cs'.
"fix end"

(0013266)
nicolas cellier   
08-24-09 20:05   
Fixed in http://source.squeak.org/trunk/Collections-nice.109.mcz [^]