Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006482 [Squeak] Kernel minor always 05-11-07 22:39 04-18-10 22:05
Reporter nicolas cellier View Status public  
Assigned To andreas
Priority normal Resolution fixed  
Status closed   Product Version 3.9
Summary 0006482: [BUG] Interval storeOn: incorrect for some ScaledDecimal
Description 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)
Additional Information 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
Attached Files  Interval-storeOn-Test.1.cs [^] (412 bytes) 05-11-07 22:47
 Interval-storeOn-Patch.1.cs [^] (337 bytes) 05-11-07 22:47

- Relationships

SYSTEM WARNING: Creating default object from empty value

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 

- Notes
(0011564 - 196 - 268 - 268 - 268 - 268 - 268)
Keith_Hodges
12-17-07 17:06
edited on: 12-17-07 17:11

"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 - 64 - 64 - 224 - 224 - 224 - 224)
nicolas cellier
08-24-09 20:05

Fixed in http://source.squeak.org/trunk/Collections-nice.109.mcz [^]
 

- Issue History
Date Modified Username Field Change
05-11-07 22:39 nicolas cellier New Issue
05-11-07 22:47 nicolas cellier File Added: Interval-storeOn-Test.1.cs
05-11-07 22:47 nicolas cellier File Added: Interval-storeOn-Patch.1.cs
09-25-07 01:19 matthewf Relationship added related to 0006696
09-25-07 01:22 matthewf Relationship added related to 0004378
12-17-07 17:06 Keith_Hodges Note Added: 0011564
12-17-07 17:11 Keith_Hodges Note Edited: 0011564
12-17-07 17:11 Keith_Hodges Note Edited: 0011564
01-10-09 01:53 Keith_Hodges Status new => pending
01-10-09 03:30 Keith_Hodges Status pending => testing
01-10-09 03:39 Keith_Hodges Status testing => resolved
01-10-09 03:39 Keith_Hodges Fixed in Version  => 3.11
01-10-09 03:39 Keith_Hodges Resolution open => fixed
01-10-09 03:39 Keith_Hodges Assigned To  => Keith_Hodges
01-10-09 03:41 Keith_Hodges Status resolved => testing
08-24-09 20:05 nicolas cellier Note Added: 0013266
10-03-09 19:33 Keith_Hodges Status testing => assigned
10-03-09 19:33 Keith_Hodges Assigned To Keith_Hodges => andreas
10-03-09 20:09 nicolas cellier Status assigned => resolved
10-03-09 20:09 nicolas cellier Fixed in Version 3.11 => trunk
04-18-10 22:05 andreas Status resolved => closed
08-21-10 13:09 nicolas cellier Relationship added child of 0007002


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