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:
parent
80124b43a8
commit
43b5998999
@ -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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user