You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-cvs@xml.apache.org by mr...@apache.org on 2005/06/21 21:05:20 UTC

cvs commit: xml-commons/java/external/src/org/xml/sax/helpers XMLReaderFactory.java

mrglavas    2005/06/21 12:05:20

  Modified:    java/external/src/org/xml/sax/helpers XMLReaderFactory.java
  Log:
  Get system property using SecuritySupport.
  
  Revision  Changes    Path
  1.7       +3 -3      xml-commons/java/external/src/org/xml/sax/helpers/XMLReaderFactory.java
  
  Index: XMLReaderFactory.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/org/xml/sax/helpers/XMLReaderFactory.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- XMLReaderFactory.java	21 Jun 2005 19:03:16 -0000	1.6
  +++ XMLReaderFactory.java	21 Jun 2005 19:05:20 -0000	1.7
  @@ -109,8 +109,8 @@
           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) {