test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/Simple.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File open Cdiff test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/Simple.java

test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/Simple.java

Print this page
rev 49650 : [mq]: module_path

*** 1,7 **** /* ! * Copyright (c) 2016, 2017, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2016, 2018, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 66,81 **** TestCommon.list("javax/naming/spi/NamingManager"), "--patch-module=java.naming=" + moduleJar, "-Xlog:class+load", "-Xlog:class+path=info", "PatchMain", "javax.naming.spi.NamingManager"); ! TestCommon.checkDump(output, "Loading classes to share"); TestCommon.run( "-XX:+UnlockDiagnosticVMOptions", "--patch-module=java.naming=" + moduleJar, "-Xlog:class+load", "-Xlog:class+path=info", "PatchMain", "javax.naming.spi.NamingManager") ! .assertNormalExit("I pass!"); } } --- 66,82 ---- TestCommon.list("javax/naming/spi/NamingManager"), "--patch-module=java.naming=" + moduleJar, "-Xlog:class+load", "-Xlog:class+path=info", "PatchMain", "javax.naming.spi.NamingManager"); ! output.shouldHaveExitValue(1) ! .shouldContain("Cannot use the following option when dumping the shared archive: --patch-module"); TestCommon.run( "-XX:+UnlockDiagnosticVMOptions", "--patch-module=java.naming=" + moduleJar, "-Xlog:class+load", "-Xlog:class+path=info", "PatchMain", "javax.naming.spi.NamingManager") ! .assertSilentlyDisabledCDS(0, "I pass!"); } }
test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/Simple.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File