14 Commits

Author SHA1 Message Date
mrglavas
01c6c51764 Merge in a fix from the tck-jaxp-1_2_0 branch:
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
2005-06-17 19:50:14 +00:00
mrglavas
ea4dcf269c Merge in a fix from the tck-jaxp-1_2_0 branch:
The reader used to read the service provider is never
closed if an IOException is thrown while reading from
it. Adding a finally block so that the reader will
always be closed.


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226238 13f79535-47bb-0310-9956-ffa450edef68
2005-06-17 19:32:50 +00:00
mrglavas
729661318d Merge in Performance Fix from the tck-jaxp-1_2_0 branch:
When reading the service provider name from a jar
a BufferedReader is used to read the first line from the
file. BufferedReader's default buffer size is 8K chars. Since
we're only reading one line (the name of a class) this is pretty
excessive. Reducing this size significantly to 80 chars.


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226237 13f79535-47bb-0310-9956-ffa450edef68
2005-06-17 19:26:53 +00:00
neeraj
5b838d686f Upgrading to JAXP 1.3 APIs.
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226183 13f79535-47bb-0310-9956-ffa450edef68
2005-04-08 10:39:14 +00:00
curcuru
34ece59e71 Cleanup imports Submitted by: vladimir@bossicard.com PR: 15647
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226036 13f79535-47bb-0310-9956-ffa450edef68
2003-01-11 01:39:09 +00:00
neilg
6ef6cd1d5f revert mistaken commit to HEAD. This should restore HEAD to its correct state, leaving only the new tck-jaxp-1_2_0 branch with "unofficial" APIs
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226024 13f79535-47bb-0310-9956-ffa450edef68
2002-12-12 16:52:03 +00:00
neilg
c9ce59d37b Changes needed to permit the xml-apis.jar generated
from this branch to pass the JAXP 1.2 TCK.  I've attempted to keep
these as limited as possible, in a few cases simply
modifying the original commons source directly rather than simply
importing Xerces code.  However, for many changes--such as that
involving correct handling of security-critical operations
like property checking--I've simply imported the relevant Xerces code.

I have always indicated in the comments at the top of substituted
files that they are substitutions (except in the case of the JAXP code
in which virtually all files were touched); where I've modified commons
code directly, I've placed comments immediately above
the modifications.


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226021 13f79535-47bb-0310-9956-ffa450edef68
2002-12-12 16:26:53 +00:00
edwingo
a2a37eb4cf Applied MS VJ++ workaround for jkesselm
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225930 13f79535-47bb-0310-9956-ffa450edef68
2001-10-26 00:23:47 +00:00
edwingo
41208535c4 Clean up debug code
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225929 13f79535-47bb-0310-9956-ffa450edef68
2001-10-24 01:12:42 +00:00
edwingo
d84a3ea853 Fixed bug in reflection code so code will compile and run on JDK 1.1
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225928 13f79535-47bb-0310-9956-ffa450edef68
2001-10-24 00:55:15 +00:00
edwingo
23ce6ff1d8 Make jaxp code compile under JDK 1.1 (it used to only just run on 1.1)
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225927 13f79535-47bb-0310-9956-ffa450edef68
2001-10-22 22:10:30 +00:00
edwingo
c4ca9aa4a8 Fix service provider code so that it uses UTF-8 for better cross-platform
compatibility with non-ascii platforms like EBCDIC


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225918 13f79535-47bb-0310-9956-ffa450edef68
2001-07-26 00:02:50 +00:00
edwingo
9d79137a1e Update copyright
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225911 13f79535-47bb-0310-9956-ffa450edef68
2001-05-22 17:05:45 +00:00
edwingo
cb24b2ecfa Initial revision
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225907 13f79535-47bb-0310-9956-ffa450edef68
2001-05-22 01:01:03 +00:00