Mercurial > hg > truffle
diff src/share/vm/classfile/systemDictionary.cpp @ 22:90f5ddc7297b
6646946: Kernel installation failed on Japanese and Chinese XP SP2 (VM part)
Summary: convert strings from Download Manager into native encoding in the VM
Reviewed-by: sbohne, never, phh, kamg, xlu
author | coleenp |
---|---|
date | Thu, 17 Jan 2008 13:38:17 -0800 |
parents | a61af66fc99e |
children | 60b728ec77c1 |
line wrap: on
line diff
--- a/src/share/vm/classfile/systemDictionary.cpp Thu Dec 06 13:59:28 2007 -0800 +++ b/src/share/vm/classfile/systemDictionary.cpp Thu Jan 17 13:38:17 2008 -0800 @@ -1242,7 +1242,9 @@ oop obj = (oop) result.get_jobject(); if (obj == NULL) { return nk; } - char* new_class_name = java_lang_String::as_utf8_string(obj); + Handle h_obj(THREAD, obj); + char* new_class_name = java_lang_String::as_platform_dependent_str(h_obj, + CHECK_(nk)); // lock the loader // we use this lock because JVMTI does.