diff options
| author | Vivek Lakshmanan <vivekl@redhat.com> | 2006-07-11 16:03:59 +0000 |
|---|---|---|
| committer | Vivek Lakshmanan <vivekl@redhat.com> | 2006-07-11 16:03:59 +0000 |
| commit | a7aafd1be0d9c5f1381b98732afebdb1e257547d (patch) | |
| tree | a4869ba8a1dd5bcc28c0d476c2beea0b0b687d99 /gnu/classpath/debug/SystemLogger.java | |
| parent | 76ae632871bfbca8c6cf911a5f67a19d6aec4d76 (diff) | |
| download | classpath-a7aafd1be0d9c5f1381b98732afebdb1e257547d.tar.gz | |
2006-07-10 Vivek Lakshmanan <vivekl@redhat.com>
PR 27649:
* gnu/classpath/debug/Simple1LineFormatter.java: Use
AccessController.doPrivileged instead of SystemProperties.getProperty.
* gnu/classpath/debug/SystemLogger.java: Likewise.
* gnu/java/security/PolicyFile.java: Likewise and cut unnecessary
repeated getProperty calls for "file.seperator".
(refresh): Since already in privileged block, call System.getProperty
instead of SystemProperties.getProperty.
* gnu/java/security/key/dss/DSSKey.java
(toString): Use AccessController.doPrivileged instead of
SystemProperties.getProperty.
* gnu/java/security/key/dss/DSSPrivateKey.java
(toString): Likewise.
* gnu/java/security/key/dss/DSSPublicKey.java
(toString): Likewise.
* gnu/java/security/key/rsa/GnuRSAKey.java
(toString): Likewise.
* gnu/java/security/key/rsa/GnuRSAPrivateKey.java
(toString): Likewise.
* gnu/java/security/key/rsa/GnuRSAPublicKey.java
(toString): Likewise.
* gnu/javax/crypto/sasl/plain/PasswordFile.java: Likewise.
* gnu/javax/crypto/key/dh/GnuDHKey.java
(toString): Likewise.
* gnu/javax/crypto/key/dh/GnuDHPrivateKey.java
(toString): Likewise.
* gnu/javax/crypto/key/dh/GnuDHPublicKey.java
(toString): Likewise.
Diffstat (limited to 'gnu/classpath/debug/SystemLogger.java')
| -rw-r--r-- | gnu/classpath/debug/SystemLogger.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gnu/classpath/debug/SystemLogger.java b/gnu/classpath/debug/SystemLogger.java index 94aa93f69..502b48870 100644 --- a/gnu/classpath/debug/SystemLogger.java +++ b/gnu/classpath/debug/SystemLogger.java @@ -38,7 +38,9 @@ version. */ package gnu.classpath.debug; -import gnu.classpath.SystemProperties; +import gnu.java.security.action.GetPropertyAction; + +import java.security.AccessController; import java.util.StringTokenizer; import java.util.logging.Logger; @@ -49,8 +51,8 @@ public final class SystemLogger static { SYSTEM.setFilter (PreciseFilter.GLOBAL); - - String defaults = SystemProperties.getProperty ("gnu.classpath.debug.components"); + String defaults = (String) AccessController.doPrivileged + (new GetPropertyAction("gnu.classpath.debug.components")); if (defaults != null) { |
