String.java (CASE_INSENSITIVE_ORDER): New static field.

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.

From-SVN: r36385
This commit is contained in:
Bryce McKinlay 2000-09-13 06:36:25 +00:00 committed by Bryce McKinlay
parent bb07060a6a
commit 0f94c029e9
4 changed files with 42 additions and 5 deletions

View file

@ -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