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); |