FogBugz (Case [Issue]10915) Collection - String class>>#readFrom: is broken and untested

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

FogBugz (Case [Issue]10915) Collection - String class>>#readFrom: is broken and untested

Pharo Issue Tracker
A FogBugz case was opened by Sven Van Caekenberghe.

Case ID:      10915
Title:        String class>>#readFrom: is broken and untested
Status:       Work Needed
Category:     Bug
Project:      Collection
Area:         Misc
Priority:     3 - Must Fix
Milestone:    Later
Assigned To:  Everyone

URL:          https://pharo.fogbugz.com/default.asp?10915

I think I've found a bug in String class>>readFrom:. This sentence fails:

z := String readFrom: 'Good morning' readStream.

I think that the bug is on the first line, saying: ^ self class streamContents:. The 'class' message shouldn't be here, because 'self' itself refers to the String class.

Present in Pharo 2.0 and 3.0.


You are subscribed to this case.  If you do not want to receive automatic notifications in the future, unsubscribe (https://pharo.fogbugz.com/default.asp?pre=preUnsubscribe&pg=pgEditBug&command=view&ixBug=10915) from this case.

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