[Fwd: [jdom-interest] SAXHandler bug]
Jason Hunter
jhunter at servlets.com
Wed Mar 6 10:43:25 PST 2002
The exception is in this code:
private int getAttributeType(String typeName) {
Integer type = (Integer)(attrNameToTypeMap.get(typeName));
if (type == null) {
if (typeName.charAt(0) == '(') { <--
It works for Xerces and Crimson, but Oracle's parser appears to be
passing in a zero-length typeName.
Seems like to work around Oracle we should code up:
private int getAttributeType(String typeName) {
Integer type = (Integer)(attrNameToTypeMap.get(typeName));
if (type == null) {
if (typeName != null && typeName.length() > 0 &&
typeName.charAt(0) == '(') {
Comments from anyone really familiar with this? Laurent?
-jh-
-------------- next part --------------
An embedded message was scrubbed...
From: Eugene Karpov <karpov at sigma.ispras.ru>
Subject: Re: [jdom-interest] SAXHandler bug
Date: Wed, 6 Mar 2002 15:34:12 +0300
Size: 4027
Url: http://jdom.org/pipermail/jdom-interest/attachments/20020306/430823cb/attachment.eml
More information about the jdom-interest
mailing list