diff options
author | Tom Tromey <tromey@redhat.com> | 2006-04-04 23:25:09 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2006-04-04 23:25:09 +0000 |
commit | 119afc377a97d86375466560b8ad538197554b81 (patch) | |
tree | 69263b8da1ad85374698a5321589ea97c4c382ff /libjava/gnu/java | |
parent | 4b1c1f6fc2f1ed0d5e4315ef6b788bf84755a5ee (diff) | |
download | gcc-119afc377a97d86375466560b8ad538197554b81.zip gcc-119afc377a97d86375466560b8ad538197554b81.tar.gz gcc-119afc377a97d86375466560b8ad538197554b81.tar.bz2 |
re PR classpath/26990 (SecurityManager.checkExit() problem)
PR libgcj/26990:
* prims.cc (_Jv_RunMain): Use exitNoChecksAccessor.
* gnu/java/lang/natMainThread.cc (call_main): Use
exitNoChecksAccessor.
* testsuite/libjava.lang/pr26990.out: New file.
* testsuite/libjava.lang/pr26990.java: New file.
* java/lang/Runtime.java (exitNoChecks): New method.
(exitNoChecksAccessor): Likewise.
(exit): Call exitNoChecks.
From-SVN: r112685
Diffstat (limited to 'libjava/gnu/java')
-rw-r--r-- | libjava/gnu/java/lang/natMainThread.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libjava/gnu/java/lang/natMainThread.cc b/libjava/gnu/java/lang/natMainThread.cc index 95626eb..99d5f95 100644 --- a/libjava/gnu/java/lang/natMainThread.cc +++ b/libjava/gnu/java/lang/natMainThread.cc @@ -57,6 +57,5 @@ gnu::java::lang::MainThread::call_main (void) _Jv_ThreadWait (); int status = (int) ::java::lang::ThreadGroup::had_uncaught_exception; - ::java::lang::Runtime *runtime = ::java::lang::Runtime::getRuntime (); - runtime->exit (status); + ::java::lang::Runtime::exitNoChecksAccessor (status); } |