ilene 2003/01/06 07:07:35
Modified: java/external/src/javax/xml/transform Tag: tck-jaxp-1_2_0
FactoryFinder.java
java/external/src/javax/xml/parsers Tag: tck-jaxp-1_2_0
FactoryFinder.java
Log:
Close FileInputStream for jaxp.properties file after properties are loaded.
Revision Changes Path
No revision
No revision
1.7.6.2 +1 -0 xml-commons/java/external/src/javax/xml/transform/FactoryFinder.java
Index: FactoryFinder.java
===================================================================
RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/transform/FactoryFinder.java,v
retrieving revision 1.7.6.1
retrieving revision 1.7.6.2
diff -u -r1.7.6.1 -r1.7.6.2
--- FactoryFinder.java 2 Jan 2003 17:25:13 -0000 1.7.6.1
+++ FactoryFinder.java 6 Jan 2003 15:07:34 -0000 1.7.6.2
@@ -154,6 +154,7 @@
FileInputStream fis = ss.getFileInputStream(new File(configFile));
Properties props = new Properties();
props.load(fis);
+ fis.close();
String factoryClassName = props.getProperty(factoryId);
if (factoryClassName != null) {
dPrint("found in jaxp.properties, value=" + factoryClassName);
No revision
No revision
1.7.6.2 +1 -0 xml-commons/java/external/src/javax/xml/parsers/FactoryFinder.java
Index: FactoryFinder.java
===================================================================
RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/parsers/FactoryFinder.java,v
retrieving revision 1.7.6.1
retrieving revision 1.7.6.2
diff -u -r1.7.6.1 -r1.7.6.2
--- FactoryFinder.java 12 Dec 2002 16:44:15 -0000 1.7.6.1
+++ FactoryFinder.java 6 Jan 2003 15:07:35 -0000 1.7.6.2
@@ -154,6 +154,7 @@
FileInputStream fis = ss.getFileInputStream(new File(configFile));
Properties props = new Properties();
props.load(fis);
+ fis.close();
String factoryClassName = props.getProperty(factoryId);
if (factoryClassName != null) {
dPrint("found in jaxp.properties, value=" + factoryClassName);
|