This commit is contained in:
Mandy Chung 2011-02-08 22:27:57 -08:00
commit 8ff932b950
24 changed files with 527 additions and 166 deletions

View file

@ -1595,7 +1595,15 @@ void JavaThread::exit(bool destroy_vm, ExitType exit_type) {
uncaught_exception, // Arg 2
THREAD);
}
CLEAR_PENDING_EXCEPTION;
if (HAS_PENDING_EXCEPTION) {
ResourceMark rm(this);
jio_fprintf(defaultStream::error_stream(),
"\nException: %s thrown from the UncaughtExceptionHandler"
" in thread \"%s\"\n",
Klass::cast(pending_exception()->klass())->external_name(),
get_thread_name());
CLEAR_PENDING_EXCEPTION;
}
}
}