< prev index next >

src/share/vm/utilities/exceptions.cpp

Print this page

        

*** 263,277 **** assert(!thread->has_pending_exception(), "already has exception"); Handle h_exception; // Resolve exception klass ! Klass* ik = SystemDictionary::resolve_or_fail(name, h_loader, h_protection_domain, true, thread); ! instanceKlassHandle klass(thread, ik); if (!thread->has_pending_exception()) { ! assert(klass.not_null(), "klass must exist"); // We are about to create an instance - so make sure that klass is initialized klass->initialize(thread); if (!thread->has_pending_exception()) { // Allocate new exception h_exception = klass->allocate_instance_handle(thread); --- 263,276 ---- assert(!thread->has_pending_exception(), "already has exception"); Handle h_exception; // Resolve exception klass ! InstanceKlass* klass = InstanceKlass::cast(SystemDictionary::resolve_or_fail(name, h_loader, h_protection_domain, true, thread)); if (!thread->has_pending_exception()) { ! assert(klass != NULL, "klass must exist"); // We are about to create an instance - so make sure that klass is initialized klass->initialize(thread); if (!thread->has_pending_exception()) { // Allocate new exception h_exception = klass->allocate_instance_handle(thread);
< prev index next >