6646946: Kernel installation failed on Japanese and Chinese XP SP2 (VM part)

Convert strings from Download Manager into native encoding in the VM

Reviewed-by: sbohne, never, phh, kamg, xlu
This commit is contained in:
Coleen Phillimore 2008-01-17 13:38:17 -08:00
parent 1bfa153ebe
commit 218615259d
3 changed files with 35 additions and 2 deletions

View file

@ -1242,7 +1242,9 @@ static instanceKlassHandle download_and_retry_class_load(
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.