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

cvs at jools.org cvs at jools.org
Mon Apr 8 23:38:42 PDT 2002

Date:	Tuesday April 9, 2002 @ 2:38
Author:	cvs

Update of /home/cvspublic/jdom/src/java/org/jdom/output
In directory jools.org:/tmp/cvs-serv6953/output

Modified Files:
Log Message:
Patch from elharo to change how exceptions are handled in the adapters
package, based on list discussion held recently.  In his words:

I've attached a large patch that changes virtually every file in the 
adapters package. As we discussed the prupose of this is to rationalize 
the exception handling. Please check the patch for sanity before 
applying. I'm still a little shaky with CVS. This is the first time I've 
tried to do a diff against an entire package.

What this patch does is limit all the adapters to throwing either 
JDOMExceptions or IOExceptions. IOExceptions are thrown only on an 
actual I/O error such as a broken socket. They are no longer thrown due 
to malformed XML or missing classes. These now throw JDOMException instead.

These changes do not break any existing tests that weren't broken 
before. They should not break any existing code because the adapter 
classes were previously declared to throw Exception, and I've made the 
throws clauses more specific. Still, I haven't really testes these at 
all yet so if anyone has any existing code that actually uses this I'd 
appreciate hearing your experiences.

This check-in also includes changes to DOMBuilder and DOMOutputter to
tighten up what they announce they'll throw, now that it's more limited.


File: no file DOMOutputter.java		Status: Needs Checkout

   Working revision:	1.29	Tue Apr  9 06:38:42 2002
   Repository revision:	1.29	/home/cvspublic/jdom/src/java/org/jdom/output/DOMOutputter.java,v

   Existing Tags:
	jdom_1_0_b8              	(revision: 1.28)
	jdom_1_0_b8_rc1          	(revision: 1.28)
	jdom_prefilter           	(revision: 1.25)
	jdom_1_0_b7              	(revision: 1.25)
	jdom_1_0_b6              	(revision: 1.16)
	start                    	(revision:
	jdom                     	(branch: 1.1.1)

More information about the jdom-commits mailing list