Get system property using SecuritySupport.

git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226250 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
mrglavas 2005-06-21 19:05:20 +00:00
parent 80124b43a8
commit 43b5998999

View File

@ -109,8 +109,8 @@ final public class XMLReaderFactory
ClassLoader loader = NewInstance.getClassLoader (); ClassLoader loader = NewInstance.getClassLoader ();
// 1. try the JVM-instance-wide system property // 1. try the JVM-instance-wide system property
try { className = System.getProperty (property); } try { className = ss.getSystemProperty (property); }
catch (RuntimeException e) { /* normally fails for applets */ } catch (Exception e) { /* normally fails for applets */ }
// 2. if that fails, try META-INF/services/ // 2. if that fails, try META-INF/services/
if (className == null) { if (className == null) {