Mercurial > hg > graal-compiler
comparison src/share/vm/prims/jvmtiEnv.cpp @ 3246: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 | 3582bf76420e |
children | e6b1331a51d2 |
comparison
equal
deleted
inserted
replaced
3245:8ce625481709 | 3246:fcc932c8238c |
---|---|
523 Handle loader = Handle(THREAD, SystemDictionary::java_system_loader()); | 523 Handle loader = Handle(THREAD, SystemDictionary::java_system_loader()); |
524 | 524 |
525 ObjectLocker ol(loader, THREAD); | 525 ObjectLocker ol(loader, THREAD); |
526 | 526 |
527 // need the path as java.lang.String | 527 // need the path as java.lang.String |
528 Handle path = java_lang_String::create_from_str(segment, THREAD); | 528 Handle path = java_lang_String::create_from_platform_dependent_str(segment, THREAD); |
529 if (HAS_PENDING_EXCEPTION) { | 529 if (HAS_PENDING_EXCEPTION) { |
530 CLEAR_PENDING_EXCEPTION; | 530 CLEAR_PENDING_EXCEPTION; |
531 return JVMTI_ERROR_INTERNAL; | 531 return JVMTI_ERROR_INTERNAL; |
532 } | 532 } |
533 | 533 |