changeset 2343:fcc932c8238c

7007254: NullPointerException occurs with jvisualvm placed under a dir. including Japanese chars Summary: use java_lang_String::create_from_platform_dependent_str() instead of java_lang_String::create_from_str() in JvmtiEnv::AddToSystemClassLoaderSearch() Reviewed-by: dcubed
author thurka
date Sat, 16 Apr 2011 11:59:54 +0200
parents 8ce625481709
children df8a1555b1ea 49bd9c6f7bce
files src/share/vm/prims/jvmtiEnv.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/prims/jvmtiEnv.cpp	Fri Apr 15 09:36:28 2011 -0400
+++ b/src/share/vm/prims/jvmtiEnv.cpp	Sat Apr 16 11:59:54 2011 +0200
@@ -525,7 +525,7 @@
     ObjectLocker ol(loader, THREAD);
 
     // need the path as java.lang.String
-    Handle path = java_lang_String::create_from_str(segment, THREAD);
+    Handle path = java_lang_String::create_from_platform_dependent_str(segment, THREAD);
     if (HAS_PENDING_EXCEPTION) {
       CLEAR_PENDING_EXCEPTION;
       return JVMTI_ERROR_INTERNAL;