Runtime.java, [...]: Replaced java.lang.Runtime.securityManager by java.lang.SecurityManager.current...
2005-04-25 Michael Koch <konqueror@gmx.de> * java/lang/Runtime.java, java/lang/SecurityManager.java, java/lang/System.java, java/lang/ThreadGroup.java: Replaced java.lang.Runtime.securityManager by java.lang.SecurityManager.current (as used in GNU classpath). From-SVN: r98738
This commit is contained in:
parent
1f4ea3f2fa
commit
4b30c6bda0
5 changed files with 39 additions and 30 deletions
|
@ -125,6 +125,14 @@ import java.util.PropertyPermission;
|
|||
*/
|
||||
public class SecurityManager
|
||||
{
|
||||
/**
|
||||
* The current security manager. This is located here instead of in
|
||||
* System, to avoid security problems, as well as bootstrap issues.
|
||||
* Make sure to access it in a thread-safe manner; it is package visible
|
||||
* to avoid overhead in java.lang.
|
||||
*/
|
||||
static volatile SecurityManager current;
|
||||
|
||||
/**
|
||||
* Tells whether or not the SecurityManager is currently performing a
|
||||
* security check.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue