[jdom-commits] CVS Update: jdom/src/java/org/jdom/input

Jason Hunter jhunter at servlets.kattare.com
Fri Nov 9 02:55:22 PST 2007

Date:   Fri Nov  9, 2007 @02:55:21 PST

Update of /home/cvs/jdom/src/java/org/jdom/input
In directory servlets:/tmp/cvs-serv9656

Modified Files:
Log Message:
Bug fix from Mattias Jiderhamn reported in "Bug regarding attributes
local name using JDOMResult". He reports, "The problem occurs when using
attributes without namespace and outputting to a JDOMResult... The point of
problem is in org.jdom.input.SAXHandler.startElement(). Here it is
assumed that the local name of the attribute is equal to the QName, if
no namespace/prefix is used. Although the documentation for
org.xml.sax.Attributes.getLocalName() says 'Returns: The local name,
or the empty string if Namespace processing is not being performed,
or null if the index is out of range.' So Resin 3 returns the emtpy
string in this case, which causes
'java.lang.StringIndexOutOfBoundsException: String index out of
range: -1' on line 537 above."


File: no file SAXHandler.java		Status: Needs Checkout

   Working revision:	1.72	Fri Nov  9 10:55:21 2007
   Repository revision:	1.72	/home/cvs/jdom/src/java/org/jdom/input/SAXHandler.java,v

   Existing Tags:
	jdom_1_0                 	(revision: 1.68)
	jdom_1_0_rc1             	(revision: 1.68)
	BEFORE_UNCHECKED         	(revision: 1.66)
	jdom_1_0_b10             	(revision: 1.64)
	jdom_1_0_b10_rc1         	(revision: 1.64)
	after_rolf               	(revision: 1.61)
	before_rolf              	(revision: 1.61)
	jdom_1_0_b9              	(revision: 1.50)
	jdom_1_0_b8              	(revision: 1.39)
	jdom_prefilter           	(revision: 1.27)
	jdom_1_0_b7              	(revision: 1.18)

More information about the jdom-commits mailing list