Tobias Bocanegra wrote:
hi,
On 4/12/08, Dave Brosius <[EMAIL PROTECTED]> wrote:
I notice that many of the classes in Jackrabbit lack a toString method.
Without them, it makes debugging code more difficult. My question is, is
that intentional?
i don't think that this was intentional - just lazy :-) we added the
toString() when needed.
Did you want to avoid a problem of people using toString
for production code?
no really. the toString() should only return debug text and never
alter the state of the object.
...
I think the risk Dave was mentioning was that if, for instance,
toString() returns the same thing as getString() (on Value), then people
- by mistake - my call the incorrect method, thus making code non-portable.
BR, Julian