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

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/adapters
In directory jools.org:/tmp/cvs-serv6953/adapters

Modified Files:
	AbstractDOMAdapter.java CrimsonDOMAdapter.java DOMAdapter.java 
	JAXPDOMAdapter.java OracleV1DOMAdapter.java 
	OracleV2DOMAdapter.java XML4JDOMAdapter.java 
	XercesDOMAdapter.java 
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.

-jh-

===================================================================
File: no file AbstractDOMAdapter.java		Status: Needs Checkout

   Working revision:	1.14	Tue Apr  9 06:38:42 2002
   Repository revision:	1.14	/home/cvspublic/jdom/src/java/org/jdom/adapters/AbstractDOMAdapter.java,v

   Existing Tags:
	jdom_1_0_b8              	(revision: 1.13)
	jdom_1_0_b8_rc1          	(revision: 1.13)
	jdom_prefilter           	(revision: 1.10)
	jdom_1_0_b7              	(revision: 1.10)
	jdom_1_0_b6              	(revision: 1.3)
	start                    	(revision: 1.1.1.1)
	jdom                     	(branch: 1.1.1)

===================================================================
File: no file CrimsonDOMAdapter.java		Status: Needs Checkout

   Working revision:	1.9	Tue Apr  9 06:38:42 2002
   Repository revision:	1.9	/home/cvspublic/jdom/src/java/org/jdom/adapters/CrimsonDOMAdapter.java,v

   Existing Tags:
	jdom_1_0_b8              	(revision: 1.8)
	jdom_1_0_b8_rc1          	(revision: 1.8)
	jdom_prefilter           	(revision: 1.6)
	jdom_1_0_b7              	(revision: 1.6)
	jdom_1_0_b6              	(revision: 1.2)

===================================================================
File: no file DOMAdapter.java		Status: Needs Checkout

   Working revision:	1.14	Tue Apr  9 06:38:42 2002
   Repository revision:	1.14	/home/cvspublic/jdom/src/java/org/jdom/adapters/DOMAdapter.java,v

   Existing Tags:
	jdom_1_0_b8              	(revision: 1.13)
	jdom_1_0_b8_rc1          	(revision: 1.13)
	jdom_prefilter           	(revision: 1.11)
	jdom_1_0_b7              	(revision: 1.11)
	jdom_1_0_b6              	(revision: 1.4)
	start                    	(revision: 1.1.1.1)
	jdom                     	(branch: 1.1.1)

===================================================================
File: no file JAXPDOMAdapter.java		Status: Needs Checkout

   Working revision:	1.6	Tue Apr  9 06:38:42 2002
   Repository revision:	1.6	/home/cvspublic/jdom/src/java/org/jdom/adapters/JAXPDOMAdapter.java,v

   Existing Tags:
	jdom_1_0_b8              	(revision: 1.5)
	jdom_1_0_b8_rc1          	(revision: 1.5)
	jdom_prefilter           	(revision: 1.3)
	jdom_1_0_b7              	(revision: 1.3)

===================================================================
File: no file OracleV1DOMAdapter.java		Status: Needs Checkout

   Working revision:	1.12	Tue Apr  9 06:38:42 2002
   Repository revision:	1.12	/home/cvspublic/jdom/src/java/org/jdom/adapters/OracleV1DOMAdapter.java,v

   Existing Tags:
	jdom_1_0_b8              	(revision: 1.11)
	jdom_1_0_b8_rc1          	(revision: 1.11)
	jdom_prefilter           	(revision: 1.9)
	jdom_1_0_b7              	(revision: 1.9)
	jdom_1_0_b6              	(revision: 1.5)
	start                    	(revision: 1.1.1.1)
	jdom                     	(branch: 1.1.1)

===================================================================
File: no file OracleV2DOMAdapter.java		Status: Needs Checkout

   Working revision:	1.10	Tue Apr  9 06:38:42 2002
   Repository revision:	1.10	/home/cvspublic/jdom/src/java/org/jdom/adapters/OracleV2DOMAdapter.java,v

   Existing Tags:
	jdom_1_0_b8              	(revision: 1.9)
	jdom_1_0_b8_rc1          	(revision: 1.9)
	jdom_prefilter           	(revision: 1.7)
	jdom_1_0_b7              	(revision: 1.7)
	jdom_1_0_b6              	(revision: 1.3)
	start                    	(revision: 1.1.1.1)
	jdom                     	(branch: 1.1.1)

===================================================================
File: no file XML4JDOMAdapter.java		Status: Needs Checkout

   Working revision:	1.10	Tue Apr  9 06:38:42 2002
   Repository revision:	1.10	/home/cvspublic/jdom/src/java/org/jdom/adapters/XML4JDOMAdapter.java,v

   Existing Tags:
	jdom_1_0_b8              	(revision: 1.9)
	jdom_1_0_b8_rc1          	(revision: 1.9)
	jdom_prefilter           	(revision: 1.7)
	jdom_1_0_b7              	(revision: 1.7)
	jdom_1_0_b6              	(revision: 1.3)
	start                    	(revision: 1.1.1.1)
	jdom                     	(branch: 1.1.1)

===================================================================
File: no file XercesDOMAdapter.java		Status: Needs Checkout

   Working revision:	1.11	Tue Apr  9 06:38:42 2002
   Repository revision:	1.11	/home/cvspublic/jdom/src/java/org/jdom/adapters/XercesDOMAdapter.java,v

   Existing Tags:
	jdom_1_0_b8              	(revision: 1.10)
	jdom_1_0_b8_rc1          	(revision: 1.10)
	jdom_prefilter           	(revision: 1.8)
	jdom_1_0_b7              	(revision: 1.8)
	jdom_1_0_b6              	(revision: 1.4)
	start                    	(revision: 1.1.1.1)
	jdom                     	(branch: 1.1.1)




More information about the jdom-commits mailing list