Status: Accepted
Owner:
[hidden email]
Labels: Type-Defect Priority-Medium GLASS-Server Version-1.0-beta.8.5
Milestone-1.0-beta.8.6
New issue 229 by
[hidden email]: ScaledDecimal class>>readFrom: returns
Number not ScaledDecimal
http://code.google.com/p/glassdb/issues/detail?id=229While debugging Max Leske's report about test failures that hadn't
reproduced in my test environment:
http://forum.world.st/failing-tests-td3244020.htmlspecifically, SqueakTests>>#testReadFrom. I discovered that the readFrom:
method is inherited from Number, so instances of ScaledDecimals aren't
returned ... interestingly enough the following expression returns true
even though we're comparing a Float and a ScaledDecimal:
| obj float1 float2 |
obj := ScaledDecimal fromString: '34.23'.
(ScaledDecimal readFrom: obj printString readStream) asFloat = obj