Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006764 [Squeak] Kernel minor always 11-12-07 21:47 04-18-10 22:05
Reporter nicolas cellier View Status public  
Assigned To andreas
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version trunk Product Version 3.10
  Product Build
Summary 0006764: Duration class>>#readFrom: does not like trailing characters
Description self should:
 (Duration readFrom: '0:00:00:00.001 ') nanoSeconds = 1000000.

current answer is 1...

To me, advantage of a Stream is to be able to decode up to irrelevant characters, and leave stream positionned for a next read...
That's my understanding of readFrom:

At least, i would expect a reading Error (or nil with a preference for Error) rather than a ... surprising result.
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0013294 - 147 - 147 - 147 - 147 - 147 - 147)
tfel
09-02-09 09:12

I uploaded a fix for that to the inbox (Kernel-tfel.236). It reads up to the spac, leaves the Stream at that position and yields the proper result.
 
(0013295 - 106 - 124 - 428 - 428 - 428 - 428)
andreas
09-03-09 03:01
edited on: 09-03-09 04:02

http://source.squeak.org/trunk/Kernel-tfel.236.mcz [^]
http://source.squeak.org/trunk/KernelTests-ar.90.mcz [^]

 

- Issue History
Date Modified Username Field Change
11-12-07 21:47 nicolas cellier New Issue
05-09-08 21:00 KenCausey Category Chronology => Kernel
09-02-09 09:12 tfel Note Added: 0013294
09-03-09 03:01 andreas Status new => resolved
09-03-09 03:01 andreas Fixed in Version  => trunk
09-03-09 03:01 andreas Resolution open => fixed
09-03-09 03:01 andreas Assigned To  => andreas
09-03-09 03:01 andreas Note Added: 0013295
09-03-09 04:02 andreas Note Edited: 0013295
04-18-10 22:05 andreas Status resolved => closed


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