hotspot/src/share/vm/oops/constantPool.cpp
changeset 25624 b3bd733f04e9
parent 25325 e3af4e02b0d5
child 27247 99db666dbe8e
--- a/hotspot/src/share/vm/oops/constantPool.cpp	Tue Jul 08 13:52:29 2014 -0400
+++ b/hotspot/src/share/vm/oops/constantPool.cpp	Wed Jul 09 22:37:48 2014 -0400
@@ -520,13 +520,9 @@
 
 Symbol* ConstantPool::exception_message(constantPoolHandle this_cp, int which, constantTag tag, oop pending_exception) {
   // Dig out the detailed message to reuse if possible
-  Symbol* message = NULL;
-  oop detailed_message = java_lang_Throwable::message(pending_exception);
-  if (detailed_message != NULL) {
-     message = java_lang_String::as_symbol_or_null(detailed_message);
-     if (message != NULL) {
-       return message;
-     }
+  Symbol* message = java_lang_Throwable::detail_message(pending_exception);
+  if (message != NULL) {
+    return message;
   }
 
   // Return specific message for the tag