From 43b599899973fe241d8a3711acda255f2f02a9f2 Mon Sep 17 00:00:00 2001 From: mrglavas Date: Tue, 21 Jun 2005 19:05:20 +0000 Subject: [PATCH] Get system property using SecuritySupport. git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226250 13f79535-47bb-0310-9956-ffa450edef68 --- java/external/src/org/xml/sax/helpers/XMLReaderFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/external/src/org/xml/sax/helpers/XMLReaderFactory.java b/java/external/src/org/xml/sax/helpers/XMLReaderFactory.java index 116f499..b3b75de 100644 --- a/java/external/src/org/xml/sax/helpers/XMLReaderFactory.java +++ b/java/external/src/org/xml/sax/helpers/XMLReaderFactory.java @@ -109,8 +109,8 @@ final public class XMLReaderFactory ClassLoader loader = NewInstance.getClassLoader (); // 1. try the JVM-instance-wide system property - try { className = System.getProperty (property); } - catch (RuntimeException e) { /* normally fails for applets */ } + try { className = ss.getSystemProperty (property); } + catch (Exception e) { /* normally fails for applets */ } // 2. if that fails, try META-INF/services/ if (className == null) {