You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by co...@apache.org on 2001/01/29 23:03:49 UTC
cvs commit: xml-xalan/java/src/javax/xml/transform TransformerFactory.java
costin 01/01/29 14:03:48
Modified: java/src/javax/xml/transform TransformerFactory.java
Log:
Small fix for applet support - getProperty needs to ignore
SecurityExceptions.
Revision Changes Path
1.14 +11 -4 xml-xalan/java/src/javax/xml/transform/TransformerFactory.java
Index: TransformerFactory.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/javax/xml/transform/TransformerFactory.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- TransformerFactory.java 2000/12/20 04:55:20 1.13
+++ TransformerFactory.java 2001/01/29 22:03:46 1.14
@@ -55,7 +55,7 @@
* <http://www.apache.org/>.
*/
/**
- * $Id: TransformerFactory.java,v 1.13 2000/12/20 04:55:20 sboag Exp $
+ * $Id: TransformerFactory.java,v 1.14 2001/01/29 22:03:46 costin Exp $
*/
package javax.xml.transform;
@@ -314,8 +314,12 @@
/**
* Temp debug code - this will be removed after we test everything
*/
- private static final boolean debug = System.getProperty("jaxp.debug")
- != null;
+ private static boolean debug;
+ static {
+ try {
+ debug = System.getProperty("jaxp.debug") != null;
+ } catch( SecurityException ex ) {}
+ }
/**
* Private implementation method - will find the implementation
@@ -332,7 +336,10 @@
// Use the system property first
try {
- String systemProp = System.getProperty(factoryId);
+ String systemProp = null;
+ try {
+ systemProp = System.getProperty(factoryId);
+ } catch( SecurityException se ) {}
if (systemProp != null) {
if (debug) {