Under some JDK's (notably both Sun and IBM 1.4.0), getClassLoader(), when invoked on the JAXP or SAX classes, it returns null. This means that the fallback mechanism in these APIs may not work correctly: in particular, when an attempt to invoke an unknown Parser/XMLReader implementation is made in SAX, a NullPointerException rather than the correct ClassNotFoundException results. This patch fixes this problem, by using Class.forName() in the event that the bootstrap classloader is not returned in this particular situation. git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226239 13f79535-47bb-0310-9956-ffa450edef68
xml-commons/java/external/README.sax.txt $Id$
HEAR YE, HEAR YE!
All of the .java software and associated documentation about
SAX in this repository are distributed freely in the
public domain.
LICENSE.sax.txt covers all software and documentation from the
megginson.com including the following in the xml-commons project:
xml-commons/java/external/src/org/xml/sax
and all subdirectories
xml-commons/java/external/xdocs/sax
and all subdirectories
The actual SAX classes in xml-commons came from:
http://www.megginson.com/Software/index.html
The original versions are tagged 'SAX-2_0-r2-prerelease'