--- a/src/hotspot/share/classfile/classListParser.cpp Fri May 17 10:48:02 2019 -0400
+++ b/src/hotspot/share/classfile/classListParser.cpp Fri May 17 08:29:55 2019 -0700
@@ -295,14 +295,14 @@
if (!is_id_specified()) {
error("If source location is specified, id must be also specified");
}
- InstanceKlass* k = ClassLoaderExt::load_class(class_name, _source, CHECK_NULL);
-
if (strncmp(_class_name, "java/", 5) == 0) {
log_info(cds)("Prohibited package for non-bootstrap classes: %s.class from %s",
_class_name, _source);
return NULL;
}
+ InstanceKlass* k = ClassLoaderExt::load_class(class_name, _source, CHECK_NULL);
+
if (k != NULL) {
if (k->local_interfaces()->length() != _interfaces->length()) {
print_specified_interfaces();
@@ -461,4 +461,3 @@
ShouldNotReachHere();
return NULL;
}
-