8058927: ATG throws ClassNotFoundException

ClassLoader for array klass set to null and not the class loader of the component type.

Reviewed-by: dcubed, ctornqvi
This commit is contained in:
Coleen Phillimore 2014-09-26 12:50:30 -04:00
parent 968d1fec16
commit ae9681a5cf
3 changed files with 47 additions and 1 deletions

View file

@ -92,7 +92,7 @@ void ArrayKlass::complete_create_array_klass(ArrayKlass* k, KlassHandle super_kl
ResourceMark rm(THREAD);
k->initialize_supers(super_klass(), CHECK);
k->vtable()->initialize_vtable(false, CHECK);
java_lang_Class::create_mirror(k, Handle(NULL), Handle(NULL), CHECK);
java_lang_Class::create_mirror(k, Handle(THREAD, k->class_loader()), Handle(NULL), CHECK);
}
GrowableArray<Klass*>* ArrayKlass::compute_secondary_supers(int num_extra_slots) {