[jdom-interest] a workaround...
tom wible
airdrummer at wheel.org
Fri Jun 7 11:24:21 PDT 2002
i haven't been able 2 make any progress in fixing the
java.lang.AbstractMethodError: com.sun.xml.tree.ElementNode.getNamespaceURI()Ljava/lang/String;
so i coded around it:
$Id: DOMBuilder.java,v 1.48 2002/04/29 13:38:16 jhunter Exp $
line 376: // Get element's namespace
Namespace ns = null;
String uri = null;
try
{
uri=node.getNamespaceURI();
}
catch(Throwable x)
{
System.err.println("----ERROR:node="+node+"\n\t"+x);
}
if (uri == null) {
ns = (current == null) ? Namespace.NO_NAMESPACE
: current.getNamespace(prefix);
}
else {
ns = Namespace.getNamespace(prefix, uri);
}
if anybody has a newer version of com.sun.xml.tree.ElementNode (mine is
7466 Fri May 21 10:57:00 EDT 1999 com/sun/xml/tree/ElementNode.class)
i'd appreciate it...
thanx
tom
More information about the jdom-interest
mailing list