817 return NULL; |
817 return NULL; |
818 } |
818 } |
819 _package_hash_table->copy_pkgnames(packages); |
819 _package_hash_table->copy_pkgnames(packages); |
820 } |
820 } |
821 // Allocate objArray and fill with java.lang.String |
821 // Allocate objArray and fill with java.lang.String |
822 objArrayOop r = oopFactory::new_objArray(SystemDictionary::string_klass(), |
822 objArrayOop r = oopFactory::new_objArray(SystemDictionary::String_klass(), |
823 nof_entries, CHECK_0); |
823 nof_entries, CHECK_0); |
824 objArrayHandle result(THREAD, r); |
824 objArrayHandle result(THREAD, r); |
825 for (int i = 0; i < nof_entries; i++) { |
825 for (int i = 0; i < nof_entries; i++) { |
826 Handle str = java_lang_String::create_from_str(packages[i], CHECK_0); |
826 Handle str = java_lang_String::create_from_str(packages[i], CHECK_0); |
827 result->obj_at_put(i, str()); |
827 result->obj_at_put(i, str()); |