aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/lang/SecurityManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/lang/SecurityManager.java')
-rw-r--r--libjava/java/lang/SecurityManager.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/libjava/java/lang/SecurityManager.java b/libjava/java/lang/SecurityManager.java
index 2e82a47..972b312 100644
--- a/libjava/java/lang/SecurityManager.java
+++ b/libjava/java/lang/SecurityManager.java
@@ -324,7 +324,7 @@ public class SecurityManager
public void checkPermission(Permission perm)
{
// XXX Should be: AccessController.checkPermission(perm);
- throw new SecurityException("Operation not allowed");
+ //.throw new SecurityException("Operation not allowed");
}
/**
@@ -553,7 +553,7 @@ public class SecurityManager
// throw new SecurityException("Missing context");
// AccessControlContext ac = (AccessControlContext) context;
// ac.checkPermission(new FilePermission(filename, "read"));
- throw new SecurityException("Cannot read files via file names.");
+ // throw new SecurityException("Cannot read files via file names.");
}
/**
@@ -677,7 +677,7 @@ public class SecurityManager
// // Use the toString() hack to do the null check.
// ac.checkPermission(new SocketPermission(host.toString + ":" +port,
// "connect"));
- throw new SecurityException("Cannot make network connections.");
+ // throw new SecurityException("Cannot make network connections.");
}
/**