Title: PATCH: IE Security fix against Xerces 1.4.3

Here's a quick patch to fix an unchecked SecurityException in Xerces 1.4.3 that prevents developers from using the XML parser in applets running inside at least IE 5.5 and 6.  The file is javax/xml/parsers/DocumentBuilderFactory.java.

        Luke Reeves, Director of Development
        Oceanlake Commerce Inc.
        [EMAIL PROTECTED]
        416.203.1677 ext. 301

--- DocumentBuilderFactory.java.orig    Mon Aug 20 16:52:30 2001
+++ DocumentBuilderFactory.java Tue Oct 30 15:05:36 2001
@@ -318,8 +318,15 @@
 
     /** Temp debug code - this will be removed after we test everything
      */
-    private static final boolean debug=
-       System.getProperty( "jaxp.debug" ) != null;
+    private static final boolean debug;
+    static
+    {
+               boolean _debug = false;
+               try {
+                       if (System.getProperty( "jaxp.debug" ) != null) _debug = true;
+               } catch(SecurityException ex) {}
+               debug = _debug;
+       }
 
     /** Private implementation method - will find the implementation
        class in the specified order.

Reply via email to