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

@ -636,6 +636,7 @@ void java_lang_Class::create_mirror(KlassHandle k, Handle class_loader,
}
// set the classLoader field in the java_lang_Class instance
assert(class_loader() == k->class_loader(), "should be same");
set_class_loader(mirror(), class_loader());
// Setup indirection from klass->mirror last