|
From: | Tom Tromey |
Subject: | Re: 3d attempt at Re: The right way(tm) of writing toString() (Was: Re: [PATCH] Field position attribute handling) |
Date: | 01 Dec 2003 17:57:56 -0700 |
User-agent: | Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
>>>>> "Victor" == Victor Niebla <address@hidden> writes: Victor> I have noticed this is not true on Sun's SDK for example URL class Victor> toString() returns "http://host/path/file..." if i try the same Victor> with the classpath URL class and i get something like: Victor> "gnu.java.net.protocol.http.Connection:http://directory.google.com/Top/" Yeah, there are some cases where the toString() result is clearly more useful without class information. I think Dalibor's rules should only apply in cases where toString either (a) isn't specified by Sun or (b) doesn't have a clear programmatic use. Tom
[Prev in Thread] | Current Thread | [Next in Thread] |