diff -r 5d42601232b1 -r 16053580a684 hotspot/src/share/vm/runtime/thread.cpp --- a/hotspot/src/share/vm/runtime/thread.cpp Fri Oct 23 14:33:19 2015 +0300 +++ b/hotspot/src/share/vm/runtime/thread.cpp Mon Oct 26 13:11:36 2015 -0400 @@ -2101,7 +2101,7 @@ frame f = last_frame(); tty->print(" (pc: " INTPTR_FORMAT " sp: " INTPTR_FORMAT " )", p2i(f.pc()), p2i(f.sp())); } - tty->print_cr(" of type: %s", InstanceKlass::cast(_pending_async_exception->klass())->external_name()); + tty->print_cr(" of type: %s", _pending_async_exception->klass()->external_name()); } _pending_async_exception = NULL; clear_has_async_exception(); @@ -2219,10 +2219,10 @@ if (TraceExceptions) { ResourceMark rm; - tty->print_cr("Pending Async. exception installed of type: %s", InstanceKlass::cast(_pending_async_exception->klass())->external_name()); + tty->print_cr("Pending Async. exception installed of type: %s", _pending_async_exception->klass()->external_name()); } // for AbortVMOnException flag - Exceptions::debug_check_abort(InstanceKlass::cast(_pending_async_exception->klass())->external_name()); + Exceptions::debug_check_abort(_pending_async_exception->klass()->external_name()); } }