test/jdk/java/security/ProtectionDomain/PreserveCombinerTest.java
changeset 52427 3c6aa484536c
parent 47216 71c04702a3d5
equal deleted inserted replaced
52426:38bf0c9c4e64 52427:3c6aa484536c
     1 /*
     1 /*
     2  * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    24 import java.security.AccessControlContext;
    24 import java.security.AccessControlContext;
    25 import java.security.AccessController;
    25 import java.security.AccessController;
    26 import java.security.DomainCombiner;
    26 import java.security.DomainCombiner;
    27 import java.security.PrivilegedAction;
    27 import java.security.PrivilegedAction;
    28 import java.security.ProtectionDomain;
    28 import java.security.ProtectionDomain;
    29 import jdk.internal.misc.SharedSecrets;
    29 import jdk.internal.access.SharedSecrets;
    30 
    30 
    31 /*
    31 /*
    32  * @test
    32  * @test
    33  * @bug 8064331
    33  * @bug 8064331
    34  * @summary Make sure that JavaSecurityAccess.doIntersectionPrivilege()
    34  * @summary Make sure that JavaSecurityAccess.doIntersectionPrivilege()
    35  *          is not dropping the information about the domain combiner of
    35  *          is not dropping the information about the domain combiner of
    36  *          the stack ACC
    36  *          the stack ACC
    37  * @modules java.base/jdk.internal.misc
    37  * @modules java.base/jdk.internal.access
    38  */
    38  */
    39 
    39 
    40 public class PreserveCombinerTest {
    40 public class PreserveCombinerTest {
    41     public static void main(String[]args) throws Exception {
    41     public static void main(String[]args) throws Exception {
    42         final DomainCombiner dc = new DomainCombiner() {
    42         final DomainCombiner dc = new DomainCombiner() {