7007254: NullPointerException occurs with jvisualvm placed under a dir. including Japanese chars
authorthurka
Sat, 16 Apr 2011 11:59:54 +0200
changeset 9173 b3df204cd281
parent 9172 a4e13ccafc44
child 9174 6417c14ff3bc
child 9319 1389411f24f6
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
hotspot/src/share/vm/prims/jvmtiEnv.cpp
--- a/hotspot/src/share/vm/prims/jvmtiEnv.cpp	Fri Apr 15 09:36:28 2011 -0400
+++ b/hotspot/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;