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

test/hotspot/jtreg/runtime/appcds/ProtectionDomain.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2014, 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) 2014, 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.
*** 55,72 **** "com/sun/jndi/dns/DnsName")); OutputAnalyzer output; // First class is loaded from CDS, second class is loaded from JAR ! output = TestCommon.exec(appJar, "-verbose:class", "ProtDomain"); TestCommon.checkExec(output, "Protection Domains match"); // First class is loaded from JAR, second class is loaded from CDS ! output = TestCommon.exec(appJar, "-verbose:class", "ProtDomainB"); TestCommon.checkExec(output, "Protection Domains match"); // Test ProtectionDomain for application and extension module classes from the // "modules" jimage ! output = TestCommon.exec(appJar, "-verbose:class", "JimageClassProtDomain"); output.shouldNotContain("Failed: Protection Domains do not match"); } } --- 55,72 ---- "com/sun/jndi/dns/DnsName")); OutputAnalyzer output; // First class is loaded from CDS, second class is loaded from JAR ! output = TestCommon.exec(appJar, "ProtDomain"); TestCommon.checkExec(output, "Protection Domains match"); // First class is loaded from JAR, second class is loaded from CDS ! output = TestCommon.exec(appJar, "ProtDomainB"); TestCommon.checkExec(output, "Protection Domains match"); // Test ProtectionDomain for application and extension module classes from the // "modules" jimage ! output = TestCommon.exec(appJar, "JimageClassProtDomain"); output.shouldNotContain("Failed: Protection Domains do not match"); } }
test/hotspot/jtreg/runtime/appcds/ProtectionDomain.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File