summaryrefslogtreecommitdiff
path: root/java/lang/SecurityManager.java
diff options
context:
space:
mode:
authorDalibor Topic <robilad@yahoo.com>2004-04-09 15:02:21 +0000
committerDalibor Topic <robilad@yahoo.com>2004-04-09 15:02:21 +0000
commit3d2b77abbfd049ae88819c80b9ee5c0a2033acbc (patch)
tree3a9de56909b4dc23e0815fb26c2fbd2da427ca13 /java/lang/SecurityManager.java
parentd8b7d9af04b0761f0eb278b0b487666efad9dc73 (diff)
downloadclasspath-3d2b77abbfd049ae88819c80b9ee5c0a2033acbc.tar.gz
2004-04-09 Dalibor Topic <robilad@kaffe.org>
* java/lang/SecurityManager.java: (checkAccess): Use getThreadGroup(). Improved documentation.
Diffstat (limited to 'java/lang/SecurityManager.java')
-rw-r--r--java/lang/SecurityManager.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/java/lang/SecurityManager.java b/java/lang/SecurityManager.java
index bec39de1c..7282da3ee 100644
--- a/java/lang/SecurityManager.java
+++ b/java/lang/SecurityManager.java
@@ -375,9 +375,9 @@ public class SecurityManager
* <code>RuntimePermission("modifyThread")</code>, return silently, so that
* core classes (the Classpath library!) can modify any thread.
*
- * @param t the other Thread to check
+ * @param thread the other Thread to check
* @throws SecurityException if permission is denied
- * @throws NullPointerException if t is null
+ * @throws NullPointerException if thread is null
* @see Thread#stop()
* @see Thread#suspend()
* @see Thread#resume()
@@ -385,9 +385,10 @@ public class SecurityManager
* @see Thread#setName(String)
* @see Thread#setDaemon(boolean)
*/
- public void checkAccess(Thread t)
+ public void checkAccess(Thread thread)
{
- if (t.group != null && t.group.getParent() != null)
+ if (thread.getThreadGroup() != null
+ && thread.getThreadGroup().getParent() != null)
checkPermission(new RuntimePermission("modifyThread"));
}