aboutsummaryrefslogtreecommitdiff
path: root/src/hotspot/share/oops/cpCache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hotspot/share/oops/cpCache.cpp')
-rw-r--r--src/hotspot/share/oops/cpCache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hotspot/share/oops/cpCache.cpp b/src/hotspot/share/oops/cpCache.cpp
index 40ca7d7efc6..9fdf69e057d 100644
--- a/src/hotspot/share/oops/cpCache.cpp
+++ b/src/hotspot/share/oops/cpCache.cpp
@@ -497,9 +497,9 @@ bool ConstantPoolCacheEntry::save_and_throw_indy_exc(
CLEAR_PENDING_EXCEPTION;
return false;
}
-
+ ResourceMark rm(THREAD);
Symbol* error = PENDING_EXCEPTION->klass()->name();
- Symbol* message = java_lang_Throwable::detail_message(PENDING_EXCEPTION);
+ const char* message = java_lang_Throwable::message_as_utf8(PENDING_EXCEPTION);
SystemDictionary::add_resolution_error(cpool, index, error, message);
set_indy_resolution_failed();