569 return true; |
569 return true; |
570 } |
570 } |
571 |
571 |
572 Symbol* ConstantPool::exception_message(constantPoolHandle this_oop, int which, constantTag tag, oop pending_exception) { |
572 Symbol* ConstantPool::exception_message(constantPoolHandle this_oop, int which, constantTag tag, oop pending_exception) { |
573 // Dig out the detailed message to reuse if possible |
573 // Dig out the detailed message to reuse if possible |
574 Symbol* message = NULL; |
574 Symbol* message = java_lang_Throwable::detail_message(pending_exception); |
575 oop detailed_message = java_lang_Throwable::message(pending_exception); |
575 if (message != NULL) { |
576 if (detailed_message != NULL) { |
576 return message; |
577 message = java_lang_String::as_symbol_or_null(detailed_message); |
|
578 if (message != NULL) { |
|
579 return message; |
|
580 } |
|
581 } |
577 } |
582 |
578 |
583 // Return specific message for the tag |
579 // Return specific message for the tag |
584 switch (tag.value()) { |
580 switch (tag.value()) { |
585 case JVM_CONSTANT_UnresolvedClass: |
581 case JVM_CONSTANT_UnresolvedClass: |