/[classpath]/classpath/java/security/Policy.java
ViewVC logotype

Diff of /classpath/java/security/Policy.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by tromey, Wed Mar 12 17:33:06 2003 UTC revision 1.9.2.1 by gnu_andrew, Sat Jan 15 17:02:08 2005 UTC
# Line 1  Line 1 
1  /* Policy.java --- Policy Manager Class  /* Policy.java --- Policy Manager Class
2     Copyright (C) 1999, 2003, Free Software Foundation, Inc.     Copyright (C) 1999, 2003, 2004 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 95  import java.util.Map; Line 95  import java.util.Map;
95   */   */
96  public abstract class Policy  public abstract class Policy
97  {  {
98    static private Policy currentPolicy = null;    private static Policy currentPolicy;
99    
100    /** Map of ProtectionDomains to PermissionCollections for this instance. */    /** Map of ProtectionDomains to PermissionCollections for this instance. */
101    private Map pd2pc = null;    private Map pd2pc = null;
# Line 191  public abstract class Policy Line 191  public abstract class Policy
191              {              {
192                currentPolicy = (Policy) Class.forName(pp).newInstance();                currentPolicy = (Policy) Class.forName(pp).newInstance();
193              }              }
194            catch (Exception ignored) {}            catch (Exception e)
195                {
196                  // Ignored.
197                }
198    
199          if (currentPolicy == null)          if (currentPolicy == null)
200            currentPolicy = new gnu.java.security.provider.DefaultPolicy();            currentPolicy = new gnu.java.security.provider.DefaultPolicy();

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.9.2.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26