diff options
| author | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-25 08:11:47 +0000 |
|---|---|---|
| committer | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-25 08:11:47 +0000 |
| commit | 6be7c24177aa4b777c19d57882a2e215609ee555 (patch) | |
| tree | ca59634693f35c54cbeb69f43bec5e3b0e8ccc51 /libjava | |
| parent | e61b46347270362598e7837e7d6bfbb94dbc1175 (diff) | |
| download | ppe42-gcc-6be7c24177aa4b777c19d57882a2e215609ee555.tar.gz ppe42-gcc-6be7c24177aa4b777c19d57882a2e215609ee555.zip | |
* java/lang/ThreadGroup.java (uncaughtException): Print thread name
with stack dump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37047 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
| -rw-r--r-- | libjava/ChangeLog | 4 | ||||
| -rw-r--r-- | libjava/java/lang/ThreadGroup.java | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 159789a5eda..2816d01c6cc 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,6 +1,9 @@ 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz> * java/util/EventObject.java: Merged from classpath. + + * java/lang/ThreadGroup.java (uncaughtException): Print thread name + with stack dump. 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com> @@ -263,7 +266,6 @@ * gnu/gcj/convert/natIconv.cc (init): Terminate buffer. ->>>>>>> 1.515 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz> * prims.cc (_Jv_argv, _Jv_argc): New fields. diff --git a/libjava/java/lang/ThreadGroup.java b/libjava/java/lang/ThreadGroup.java index 52c69525098..cf1e7171ccb 100644 --- a/libjava/java/lang/ThreadGroup.java +++ b/libjava/java/lang/ThreadGroup.java @@ -500,6 +500,8 @@ public class ThreadGroup parent.uncaughtException (thread, t); else if (! (t instanceof ThreadDeath)) { + if (thread != null) + System.out.print("Exception in thread \"" + thread.getName() + "\" "); t.printStackTrace(); had_uncaught_exception = true; } |

