Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0007262 [Squeak] Network minor always 01-06-09 15:11 08-21-10 09:47
Reporter luki View Status public  
Assigned To cdegroot
Priority normal Resolution open Platform
Status assigned   OS
Projection none   OS Version
ETA none Fixed in Version Product Version 3.10.2
  Product Build
Summary 0007262: UUID class>>fromString36: fails when reading a small value, e.g. nilUUID
Description self
    shouldnt: [UUID fromString36: (UUID nilUUID asString36)]
    raise: Error.
Steps To Reproduce
Additional Information UUID class>>fromString36: should use "num digitLength" instead of "num size" as #size fails when sent to SmallIntegers.
Attached Files  M7262-UUID-class-fromString36.1.cs [^] (669 bytes) 01-06-09 15:28
 M7262-UUID-class-fromString36-Test.1.cs [^] (544 bytes) 01-06-09 15:29

- Relationships

- Notes
(0013834 - 254 - 322 - 322 - 322 - 322 - 322)
nicolas cellier
08-21-10 09:29

Good catch thank you!

code could simply be:

  1 to: (16 min: num digitLength) do: [:i | object at: i put: (num digitAt: i)].

but since (2 digitAt: 15) also works well, we can just say:

  1 to: 16 do: [:i | object at: i put: (num digitAt: i)].
 
(0013835 - 162 - 168 - 318 - 318 - 318 - 318)
nicolas cellier
08-21-10 09:47

Fixed in trunk http://source.squeak.org/trunk/SMBase-nice.112.mcz [^]
I don't know where to load the tests yet, because they should belong to SM package (Squeak Map)
 

- Issue History
Date Modified Username Field Change
01-06-09 15:11 luki New Issue
01-06-09 15:11 luki Status new => assigned
01-06-09 15:11 luki Assigned To  => cdegroot
01-06-09 15:13 luki Issue Monitored: luki
01-06-09 15:28 luki File Added: M7262-UUID-class-fromString36.1.cs
01-06-09 15:29 luki File Added: M7262-UUID-class-fromString36-Test.1.cs
08-21-10 09:29 nicolas cellier Note Added: 0013834
08-21-10 09:47 nicolas cellier Note Added: 0013835


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