This is a patch for src/javax/xml/parsers/DocumentBuilderFactory.java.  Basically 
there's a debug variable set based on an environment variable - and this throws an 
unchecked security exception in Internet Explorer, preventing the use of Xerces in an 
applet.  The patch follows.

  Luke Reeves
  [EMAIL PROTECTED]

--- 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.

------------------------------------------------
    This message was sent using submail.net!
------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to