vromero@2535: /* dlsmith@2788: * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. vromero@2535: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. vromero@2535: * vromero@2535: * This code is free software; you can redistribute it and/or modify it vromero@2535: * under the terms of the GNU General Public License version 2 only, as vromero@2535: * published by the Free Software Foundation. vromero@2535: * vromero@2535: * This code is distributed in the hope that it will be useful, but WITHOUT vromero@2535: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or vromero@2535: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License vromero@2535: * version 2 for more details (a copy is included in the LICENSE file that vromero@2535: * accompanied this code). vromero@2535: * vromero@2535: * You should have received a copy of the GNU General Public License version vromero@2535: * 2 along with this work; if not, write to the Free Software Foundation, vromero@2535: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. vromero@2535: * vromero@2535: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA vromero@2535: * or visit www.oracle.com if you need additional information or have any vromero@2535: * questions. vromero@2535: */ vromero@2535: vromero@2535: /* vromero@2535: * @test dlsmith@2788: * @bug 8075520 dlsmith@2788: * @summary Varargs access check mishandles capture variables dlsmith@2788: * @compile VarargsAndWildcardParameterizedTypeTest4.java dlsmith@2788: * @compile -source 8 VarargsAndWildcardParameterizedTypeTest4.java dlsmith@2788: * @compile -source 7 VarargsAndWildcardParameterizedTypeTest4.java vromero@2535: */ vromero@2535: dlsmith@2788: class VarargsAndWildcardParameterizedTypeTest2 { dlsmith@2788: interface I { dlsmith@2788: void m(Box iter, T... t); vromero@2535: } vromero@2535: dlsmith@2788: interface Box {} dlsmith@2788: dlsmith@2788: void m(I i, Box b) { dlsmith@2788: i.m(b); vromero@2535: } vromero@2535: }