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/testsuite/libjava.lang | |
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/testsuite/libjava.lang')
-rw-r--r-- | libjava/testsuite/libjava.lang/pr26990.java | 13 | ||||
-rw-r--r-- | libjava/testsuite/libjava.lang/pr26990.out | 0 |
2 files changed, 13 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.lang/pr26990.java b/libjava/testsuite/libjava.lang/pr26990.java new file mode 100644 index 0000000..88db93e --- /dev/null +++ b/libjava/testsuite/libjava.lang/pr26990.java @@ -0,0 +1,13 @@ +public class pr26990 +{ + public static void main (String args[]) throws Exception + { + System.setSecurityManager(new SecurityManager() + { + public void checkExit(int status) + { + throw new SecurityException("This is a bug"); + } + }); + } +} diff --git a/libjava/testsuite/libjava.lang/pr26990.out b/libjava/testsuite/libjava.lang/pr26990.out new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/libjava/testsuite/libjava.lang/pr26990.out |