comparison 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
comparison
equal deleted inserted replaced
21:b611e572fc5b 22:90f5ddc7297b
1240 // Get result.string and add to bootclasspath 1240 // Get result.string and add to bootclasspath
1241 assert(result.get_type() == T_OBJECT, "just checking"); 1241 assert(result.get_type() == T_OBJECT, "just checking");
1242 oop obj = (oop) result.get_jobject(); 1242 oop obj = (oop) result.get_jobject();
1243 if (obj == NULL) { return nk; } 1243 if (obj == NULL) { return nk; }
1244 1244
1245 char* new_class_name = java_lang_String::as_utf8_string(obj); 1245 Handle h_obj(THREAD, obj);
1246 char* new_class_name = java_lang_String::as_platform_dependent_str(h_obj,
1247 CHECK_(nk));
1246 1248
1247 // lock the loader 1249 // lock the loader
1248 // we use this lock because JVMTI does. 1250 // we use this lock because JVMTI does.
1249 Handle loader_lock(THREAD, SystemDictionary::system_loader_lock()); 1251 Handle loader_lock(THREAD, SystemDictionary::system_loader_lock());
1250 1252