changeset 504:1c5e3ae28f81

Merge
author chegar
date Tue, 18 Jun 2013 09:36:20 +0100
parents ec38586b8bf3 09d55894844d
children 21d9cbbb7bf3
files
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/org/xml/sax/helpers/XMLReaderFactory.java	Mon Jun 17 11:18:50 2013 +0100
+++ b/src/org/xml/sax/helpers/XMLReaderFactory.java	Tue Jun 18 09:36:20 2013 +0100
@@ -85,6 +85,7 @@
     private static final String property = "org.xml.sax.driver";
     private static SecuritySupport ss = new SecuritySupport();
 
+    private static String _clsFromJar = null;
     private static boolean _jarread = false;
     /**
      * Attempt to create an XMLReader from system defaults.
@@ -163,14 +164,14 @@
                     }
 
                     if (in != null) {
-                        reader = new BufferedReader (
-                                new InputStreamReader (in, "UTF8"));
-                        className = reader.readLine ();
+                        reader = new BufferedReader (new InputStreamReader (in, "UTF8"));
+                        _clsFromJar = reader.readLine ();
                         in.close ();
                     }
                 } catch (Exception e) {
                 }
             }
+            className = _clsFromJar;
         }
 
         // 3. Distro-specific fallback