Chuck,

> I am getting a ClassCastException every time I call getIdentifiers()
> on my Document. The exception occurs at line 1176 in the
> DeferredDocumentImpl class' synchronizeData() method. The code at 
> that line is:

I am not able to reproduce your bug with the latest code in
CVS. Please verify with the latest source code and if you 
still see the error, send me a sample program.

> Element element;
> if( place instanceof Document )
>     element = this.getDocumentElement();
> else
>     element = (Element)place;

This is not a good fix. The purpose of the previous loop
is to arrive at the element which contains the ID attribute.
This is not always the document element. If place is 
becoming set to the Document reference, then there is a
bug in the algorithm that needs to be fixed. But since I
can't duplicate, I'll have to wait until I get a sample
program.

-- 
Andy Clark * IBM, JTC - Silicon Valley * [EMAIL PROTECTED]

Reply via email to