Issue 6378 in pharo: Magnitude >> putOn: is faulty

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 6378 in pharo: Magnitude >> putOn: is faulty

pharo
Status: WorkNeeded
Owner: [hidden email]
Labels: Type-Bug Milestone-2.0

New issue 6378 by [hidden email]: Magnitude >> putOn: is faulty
http://code.google.com/p/pharo/issues/detail?id=6378

Magnitude >> putOn:
When encountering a binary stream, magnitude tries to call to "self  
asByteArray". The only subclass of Magnitude that implements asByteArray is  
Integer. The rest (Float, Fraction, Character, Date, etc) will simply  
throws a DoesNotUnderstand exception.


Solution:

--> added isBinary to Stream returning false
--> Moved putOn: to Integer.

In general, the whole putOn: idea should be rethought (in the context of a  
new Stream implementation).


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6378 in pharo: Magnitude >> putOn: is faulty

pharo
Updates:
        Status: FixToInclude

Comment #1 on issue 6378 by [hidden email]: Magnitude >> putOn: is  
faulty
http://code.google.com/p/pharo/issues/detail?id=6378

Name: SLICE-Issue-6378-Magnitude-gtgt-putOn-is-faulty-MarcusDenker.1
Author: MarcusDenker
Time: 15 July 2012, 3:48:26.325 pm
UUID: 57e3b405-cb1e-4715-88b0-29b0fced2f38
Ancestors:
Dependencies: Collections-Abstract-MarcusDenker.175,  
Kernel-MarcusDenker.1149, Collections-Streams-MarcusDenker.113

Issue 6378: Magnitude >> putOn: is faulty


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6378 in pharo: Magnitude >> putOn: is faulty

pharo
Updates:
        Status: Integrated

Comment #2 on issue 6378 by [hidden email]: Magnitude >> putOn: is  
faulty
http://code.google.com/p/pharo/issues/detail?id=6378

in 2.0 214


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker