src/hotspot/share/classfile/classListParser.cpp
changeset 54927 1512d88b24c6
parent 54847 59ea39bb2809
child 58760 1f7f707c1aa9
equal deleted inserted replaced
54926:d4e7ccaf1445 54927:1512d88b24c6
   293     error("If source location is specified, super class must be also specified");
   293     error("If source location is specified, super class must be also specified");
   294   }
   294   }
   295   if (!is_id_specified()) {
   295   if (!is_id_specified()) {
   296     error("If source location is specified, id must be also specified");
   296     error("If source location is specified, id must be also specified");
   297   }
   297   }
   298   InstanceKlass* k = ClassLoaderExt::load_class(class_name, _source, CHECK_NULL);
       
   299 
       
   300   if (strncmp(_class_name, "java/", 5) == 0) {
   298   if (strncmp(_class_name, "java/", 5) == 0) {
   301     log_info(cds)("Prohibited package for non-bootstrap classes: %s.class from %s",
   299     log_info(cds)("Prohibited package for non-bootstrap classes: %s.class from %s",
   302           _class_name, _source);
   300           _class_name, _source);
   303     return NULL;
   301     return NULL;
   304   }
   302   }
       
   303 
       
   304   InstanceKlass* k = ClassLoaderExt::load_class(class_name, _source, CHECK_NULL);
   305 
   305 
   306   if (k != NULL) {
   306   if (k != NULL) {
   307     if (k->local_interfaces()->length() != _interfaces->length()) {
   307     if (k->local_interfaces()->length() != _interfaces->length()) {
   308       print_specified_interfaces();
   308       print_specified_interfaces();
   309       print_actual_interfaces(k);
   309       print_actual_interfaces(k);
   459   error("The interface %s implemented by class %s does not match any of the specified interface IDs",
   459   error("The interface %s implemented by class %s does not match any of the specified interface IDs",
   460         interface_name->as_klass_external_name(), _class_name);
   460         interface_name->as_klass_external_name(), _class_name);
   461   ShouldNotReachHere();
   461   ShouldNotReachHere();
   462   return NULL;
   462   return NULL;
   463 }
   463 }
   464