summaryrefslogtreecommitdiff
path: root/libjava/java/lang/ThreadGroup.java
diff options
context:
space:
mode:
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-13 06:36:25 +0000
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-13 06:36:25 +0000
commit09c0169650a06161c322d8ad64756aaf3acae40a (patch)
treed1ce9437fa18890703cab6233079cd8bcce1b50d /libjava/java/lang/ThreadGroup.java
parent7002e559d8a63723667d25988d1aafe1d900d0d0 (diff)
downloadgcc-09c0169650a06161c322d8ad64756aaf3acae40a.tar.gz
2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
* java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field. Initialize with anonymous class. (compareToIgnoreCase): New method. * java/lang/ThreadGroup.java (had_uncaught_exception): New field. (uncaughtException): Set had_uncaught_exception. * prims.cc (JvRunMain): Check value of had_uncaught_exception and exit with error status if set. (_Jv_RunMain): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36385 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/lang/ThreadGroup.java')
-rw-r--r--libjava/java/lang/ThreadGroup.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/libjava/java/lang/ThreadGroup.java b/libjava/java/lang/ThreadGroup.java
index f566e106f17..52c69525098 100644
--- a/libjava/java/lang/ThreadGroup.java
+++ b/libjava/java/lang/ThreadGroup.java
@@ -53,6 +53,9 @@ public class ThreadGroup
{
/* The Initial, top-level ThreadGroup. */
static ThreadGroup root = new ThreadGroup();
+ /* This flag is set if an uncaught exception occurs. The runtime should
+ check this and exit with an error status if it is set. */
+ static boolean had_uncaught_exception = false;
private ThreadGroup parent;
private String name;
@@ -496,7 +499,10 @@ public class ThreadGroup
if (parent != null)
parent.uncaughtException (thread, t);
else if (! (t instanceof ThreadDeath))
- t.printStackTrace();
+ {
+ t.printStackTrace();
+ had_uncaught_exception = true;
+ }
}
/** Tell the VM whether it may suspend Threads in low memory