summaryrefslogtreecommitdiff
path: root/gnu/classpath
diff options
context:
space:
mode:
authorVivek Lakshmanan <vivekl@redhat.com>2006-07-11 16:03:59 +0000
committerVivek Lakshmanan <vivekl@redhat.com>2006-07-11 16:03:59 +0000
commita7aafd1be0d9c5f1381b98732afebdb1e257547d (patch)
treea4869ba8a1dd5bcc28c0d476c2beea0b0b687d99 /gnu/classpath
parent76ae632871bfbca8c6cf911a5f67a19d6aec4d76 (diff)
downloadclasspath-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')
-rw-r--r--gnu/classpath/debug/Simple1LineFormatter.java7
-rw-r--r--gnu/classpath/debug/SystemLogger.java8
2 files changed, 9 insertions, 6 deletions
diff --git a/gnu/classpath/debug/Simple1LineFormatter.java b/gnu/classpath/debug/Simple1LineFormatter.java
index a95f8a9d2..96573193a 100644
--- a/gnu/classpath/debug/Simple1LineFormatter.java
+++ b/gnu/classpath/debug/Simple1LineFormatter.java
@@ -38,10 +38,11 @@ exception statement from your version. */
package gnu.classpath.debug;
-import gnu.classpath.SystemProperties;
+import gnu.java.security.action.GetPropertyAction;
import java.io.PrintWriter;
import java.io.StringWriter;
+import java.security.AccessController;
import java.text.DateFormat;
import java.text.DecimalFormat;
import java.text.NumberFormat;
@@ -94,8 +95,8 @@ public class Simple1LineFormatter
private static final String THREAD_PATTERN = " #########0;-#########0";
private static final String SPACES_32 = " ";
private static final String SPACES_6 = " ";
- private static final String LS = SystemProperties.getProperty("line.separator");
-
+ private static final String LS = (String) AccessController.doPrivileged
+ (new GetPropertyAction("line.separator"));
private DateFormat dateFormat;
private NumberFormat threadFormat;
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)
{