--- old/test/hotspot/jtreg/runtime/cds/appcds/SpecifySysLoaderProp.java 2020-07-22 12:00:44.780297613 -0700 +++ new/test/hotspot/jtreg/runtime/cds/appcds/SpecifySysLoaderProp.java 2020-07-22 12:00:44.604290987 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -72,6 +72,7 @@ TestCommon.run( "-verbose:class", "-cp", appJar, + "-Xlog:cds", "-Djava.system.class.loader=TestClassLoader", "ReportMyLoader") .assertNormalExit("ReportMyLoader's loader = jdk.internal.loader.ClassLoaders$AppClassLoader@", //<-this is still printed because TestClassLoader simply delegates to Launcher$AppLoader, but ... @@ -80,6 +81,7 @@ .assertNormalExit(output -> { output.shouldMatch(".class,load. TestClassLoader source: file:"); output.shouldMatch(".class,load. ReportMyLoader source: file:.*" + jarFileName); + output.shouldContain("full module graph: disabled due to incompatible property: java.system.class.loader="); }); // (3) Try to change the java.system.class.loader programmatically after