equal
deleted
inserted
replaced
495 // have already made any needed loader constraints. |
495 // have already made any needed loader constraints. |
496 // Since loader constraints are transitive, it is enough |
496 // Since loader constraints are transitive, it is enough |
497 // to link to the first super, and we get all the others. |
497 // to link to the first super, and we get all the others. |
498 Handle super_loader(THREAD, super_klass->class_loader()); |
498 Handle super_loader(THREAD, super_klass->class_loader()); |
499 |
499 |
500 if (target_loader() != super_loader()) { |
500 if (!oopDesc::equals(target_loader(), super_loader())) { |
501 ResourceMark rm(THREAD); |
501 ResourceMark rm(THREAD); |
502 Symbol* failed_type_symbol = |
502 Symbol* failed_type_symbol = |
503 SystemDictionary::check_signature_loaders(signature, target_loader, |
503 SystemDictionary::check_signature_loaders(signature, target_loader, |
504 super_loader, true, |
504 super_loader, true, |
505 CHECK_(false)); |
505 CHECK_(false)); |
1224 } else { |
1224 } else { |
1225 // Entry did resolve, check loader constraints before initializing |
1225 // Entry did resolve, check loader constraints before initializing |
1226 // if checkconstraints requested |
1226 // if checkconstraints requested |
1227 if (checkconstraints) { |
1227 if (checkconstraints) { |
1228 Handle method_holder_loader (THREAD, target->method_holder()->class_loader()); |
1228 Handle method_holder_loader (THREAD, target->method_holder()->class_loader()); |
1229 if (method_holder_loader() != interface_loader()) { |
1229 if (!oopDesc::equals(method_holder_loader(), interface_loader())) { |
1230 ResourceMark rm(THREAD); |
1230 ResourceMark rm(THREAD); |
1231 Symbol* failed_type_symbol = |
1231 Symbol* failed_type_symbol = |
1232 SystemDictionary::check_signature_loaders(m->signature(), |
1232 SystemDictionary::check_signature_loaders(m->signature(), |
1233 method_holder_loader, |
1233 method_holder_loader, |
1234 interface_loader, |
1234 interface_loader, |