[jdom-commits] CVS update: jdom/src/java/org/jdom

jhunter at cvs.jdom.org jhunter at cvs.jdom.org
Tue Mar 13 18:46:26 PST 2001


Date:	Wednesday March 14, 2001 @ 2:46
Author:	jhunter

Update of /home/cvspublic/jdom/src/java/org/jdom
In directory www.nmemonix.com:/tmp/cvs-serv26289

Modified Files:
	Document.java Element.java 
Log Message:
Fixed Element.setMixedContent() so it now checks object types and sets
each added object's parent.  This was an XXX comment and was also
pointed out recently by Will Conant <will_conant at hotmail.com>.

Also improved documentation on Element and Document to note that 
"In event of an exception the content may be partially added."  
We have two choices here: to pre-check for error conditions and thus make
the set operation appear "atomic" or to allow an error event to leave 
the list partially changed.  It's faster to leave the list partially 
changed and adding wrongly typed objects is probably a catastrophic 
failure, so I implemented without the pre-check.

-jh-

===================================================================
File: Document.java    	Status: Up-to-date

   Working revision:	1.28	Wed Mar 14 02:46:25 2001
   Repository revision:	1.28	/home/cvspublic/jdom/src/java/org/jdom/Document.java,v

   Existing Tags:
	start                    	(revision: 1.1.1.1)
	jdom                     	(branch: 1.1.1)

===================================================================
File: Element.java     	Status: Up-to-date

   Working revision:	1.59	Wed Mar 14 02:46:26 2001
   Repository revision:	1.59	/home/cvspublic/jdom/src/java/org/jdom/Element.java,v

   Existing Tags:
	start                    	(revision: 1.1.1.1)
	jdom                     	(branch: 1.1.1)




More information about the jdom-commits mailing list