[jdom-interest] Re: Factories for Element creation

Jason Hunter jhunter at collab.net
Mon Nov 13 08:19:57 PST 2000


> > We originally made it final to prevent people from using it instead
> > of getSerializedForm(). toString() is for debugging only.
> 
> > Here's my question to you: why do you want to subclass it? What's
> 
> The subclassing of Element is done to provide e.g. tag-specific state
> and, as in my case, to support additional interfaces. This approach 
> was discussed earlier in this thread.
> 
> Restricting toString() to debugging creates a potential problem with
> respect to the documentation of Object.toString(), 

I agree, and since I haven't heard any real dissent, I just checked in a
change so the toString() methods are no longer be final.

-jh-



More information about the jdom-interest mailing list