[jdom-interest] Making setMixedContent appear atomic

philip.nelson at omniresources.com philip.nelson at omniresources.com
Sun Apr 15 20:48:31 PDT 2001


> I agree. In general, it seems silly to me to try to do really 
> nice, helpful
> things when a programmer error occurs, besides throw an 
> informative exception.
> If someone tries to add a JComboBox to a JDOM document, 
> there's no need for us
> to go out of our way to make the document still useable after 
> this error. The
> programmer will discover the error and fix their code, so any 
> fancy recovery
> code we put into JDOM would be a waste, no?

Probably in general yes, but what if an element of the List is null?
Probably this is a data error from somewhere else.  Should the content get
blown away?  It seems we have to handle this the same way.

The alternative would be to say that any exception from this method
indicates corrupt data I suppose.



More information about the jdom-interest mailing list