src/hotspot/share/classfile/classFileParser.cpp
changeset 54257 21702e87efdf
parent 54042 6dd6f988b4e4
child 54335 d9f6d16299b1
child 54554 c171aa9e5d3e
--- a/src/hotspot/share/classfile/classFileParser.cpp	Sat Mar 23 17:18:49 2019 +0100
+++ b/src/hotspot/share/classfile/classFileParser.cpp	Sat Mar 23 21:51:07 2019 -0700
@@ -6113,7 +6113,7 @@
           // For the boot and platform class loaders, skip classes that are not found in the
           // java runtime image, such as those found in the --patch-module entries.
           // These classes can't be loaded from the archive during runtime.
-          if (!ClassLoader::is_modules_image(stream->source()) && strncmp(stream->source(), "jrt:", 4) != 0) {
+          if (!stream->from_boot_loader_modules_image() && strncmp(stream->source(), "jrt:", 4) != 0) {
             skip = true;
           }