diff options
author | Bryce McKinlay <bryce@albatross.co.nz> | 2001-03-12 07:40:17 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2001-03-12 07:40:17 +0000 |
commit | 456c0b60ad23e3d73e4b5cbc6c1f6113fb792534 (patch) | |
tree | ea1cde64a91671a886ba0332dcbc3874ff477611 /libjava/prims.cc | |
parent | 9612ab65bd2b44870545b8f8de8221eecea96732 (diff) | |
download | gcc-456c0b60ad23e3d73e4b5cbc6c1f6113fb792534.zip gcc-456c0b60ad23e3d73e4b5cbc6c1f6113fb792534.tar.gz gcc-456c0b60ad23e3d73e4b5cbc6c1f6113fb792534.tar.bz2 |
Runtime.java (_exit): Declare new package-private native.
2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
* 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.
From-SVN: r40401
Diffstat (limited to 'libjava/prims.cc')
-rw-r--r-- | libjava/prims.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/prims.cc b/libjava/prims.cc index 85264bb..f68b2f0 100644 --- a/libjava/prims.cc +++ b/libjava/prims.cc @@ -850,7 +850,7 @@ JvRunMain (jclass klass, int argc, const char **argv) int status = (int) java::lang::ThreadGroup::had_uncaught_exception; - java::lang::Runtime::getRuntime ()->exit (status); + java::lang::Runtime::getRuntime ()->_exit (status); } void |