Hi Simon,

The reason org.apache.xerces.dom.CharacterDataImpl doesn't implement
CharacterData is because one of its derived classes,
org.apache.xerces.dom.ProcessingInstructionImpl, doesn't implement this
interface. The ProcessingInstruction interface only extends Node.

The other two subclasses for comment nodes and text nodes implement
CharacterData as they should.

On Tue, 4 Nov 2003, Simon Bretin wrote:

> Hello Xerces developpers,
>
> I have been working with Xerces for quite some times now but just as a
> simple user.  I'm currently working on a project where I try to reduce
> to the bare minimum the size of java applications, by doing some
> bytecode optimization.
> Within this work I found a little problem with the class
> org.apache.xerces.dom.CharacterDataImpl. This class extends ChildNode
> but does not implement CharacterData which would seem like the correct
> thing to do. Since this is an abstract class, the class extending
> CharacterDataImpl (which is abstract) will also implement CharacterData,
> thus making the hierarchy somewhat correct.
> I was wondering if there was a true reason behind this miss, or if my
> understanding of the hierarchy of this class was incorrect ?
>
> Thanks,
>
> Simon
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to