attila@404: /* attila@404: * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. attila@404: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. attila@404: * attila@404: * This code is free software; you can redistribute it and/or modify it attila@404: * under the terms of the GNU General Public License version 2 only, as attila@404: * published by the Free Software Foundation. attila@404: * attila@404: * This code is distributed in the hope that it will be useful, but WITHOUT attila@404: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or attila@404: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License attila@404: * version 2 for more details (a copy is included in the LICENSE file that attila@404: * accompanied this code). attila@404: * attila@404: * You should have received a copy of the GNU General Public License version attila@404: * 2 along with this work; if not, write to the Free Software Foundation, attila@404: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. attila@404: * attila@404: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA attila@404: * or visit www.oracle.com if you need additional information or have any attila@404: * questions. attila@404: */ attila@404: attila@404: /** attila@404: * JDK-8010946: AccessController.doPrivileged() doesn't work as expected. attila@404: * This is actually a broader issue of having Dynalink correctly handle attila@404: * caller-sensitive methods. attila@404: * attila@404: * @test attila@404: * @run attila@404: */ attila@404: attila@458: // Ensure this is CallerSensitiveDynamicMethod attila@404: print(java.security.AccessController["doPrivileged(PrivilegedAction)"]) attila@404: attila@404: // Ensure this is not attila@404: print(java.lang.String["valueOf(char)"])