From 6b6cc52d60b3de64f4106210649903319b5a5ebe Mon Sep 17 00:00:00 2001 From: bryce Date: Mon, 12 Mar 2001 07:40:17 +0000 Subject: 2001-03-12 Bryce McKinlay * java/lang/Runtime.java (_exit): Declare new package-private native. * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but without a security manager check. (exit): Call _exit after security check. * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime "naturally". * java/lang/System.java (setSecurityManager): If a security manager is already in place, call checkPermission. * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace() throws an exception, try to deal with it gracefully. * java/lang/ExceptionInInitializerError.java (printStackTrace): Only try to print the subordinate stack trace if "exception" is set. Print our class name first. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40401 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/java/lang/System.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libjava/java/lang/System.java') diff --git a/libjava/java/lang/System.java b/libjava/java/lang/System.java index 162bc1f21eb..0f7bd7ba8b7 100644 --- a/libjava/java/lang/System.java +++ b/libjava/java/lang/System.java @@ -230,7 +230,7 @@ public final class System public static void setSecurityManager (SecurityManager s) { if (secman != null) - throw new SecurityException (); + secman.checkPermission(new RuntimePermission("setSecurityManager")); secman = s; } -- cgit v1.2.1