curcuru 01/06/14 13:26:21
Modified: java/src/javax/xml/parsers SAXParserFactory.java
Log:
Fix Bugzilla 1490; move return of cached foundFactory to
after attempting lookup of system property (this matches
DocumentBuilderFactory; in the future we'll be using the
xml-commons files, but we're not ready to integrate those yet)
Revision Changes Path
1.7 +4 -3
xml-xalan/java/src/javax/xml/parsers/SAXParserFactory.java
Index: SAXParserFactory.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/javax/xml/parsers/SAXParserFactory.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- SAXParserFactory.java 2001/05/15 21:18:18 1.6
+++ SAXParserFactory.java 2001/06/14 20:26:17 1.7
@@ -315,9 +315,6 @@
private static String findFactory(String factoryId,
String defaultFactory)
{
- if( foundFactory!=null)
- return foundFactory;
-
// Use the system property first
try {
foundFactory =
@@ -331,6 +328,10 @@
}catch (SecurityException se) {
}
+
+ // Then try the previously found one (fix Bugzilla 1490 13-Jun-01
-sc)
+ if( foundFactory!=null)
+ return foundFactory;
// try to read from $java.home/lib/jaxp.properties
try {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]