Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] why is Element.toString() final?

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: Steve Loughran <steve.loughran AT gmail.com>
  • Cc: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] why is Element.toString() final?
  • Date: Fri, 09 Dec 2005 08:19:31 -0500

Steve Loughran wrote:
Given that it is primarily for debugging, why is Element.toString() final?


It's final because everything should be final unless and until there's a clear and compelling use case for subclassing/overriding it. So far no one has demonstrated such a use case or shown a need for overriding it. if someone does, then I'd consider making it non-final.

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page