jlahoda@2564: /* jlahoda@2564: * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. jlahoda@2564: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. jlahoda@2564: * jlahoda@2564: * This code is free software; you can redistribute it and/or modify it jlahoda@2564: * under the terms of the GNU General Public License version 2 only, as jlahoda@2564: * published by the Free Software Foundation. jlahoda@2564: * jlahoda@2564: * This code is distributed in the hope that it will be useful, but WITHOUT jlahoda@2564: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or jlahoda@2564: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License jlahoda@2564: * version 2 for more details (a copy is included in the LICENSE file that jlahoda@2564: * accompanied this code). jlahoda@2564: * jlahoda@2564: * You should have received a copy of the GNU General Public License version jlahoda@2564: * 2 along with this work; if not, write to the Free Software Foundation, jlahoda@2564: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. jlahoda@2564: * jlahoda@2564: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA jlahoda@2564: * or visit www.oracle.com if you need additional information or have any jlahoda@2564: * questions. jlahoda@2564: */ jlahoda@2564: jlahoda@2564: /* jlahoda@2564: * @test jlahoda@2564: * @bug 8056984 jlahoda@2564: * @summary Ensure that method resolution runs over a captured type variables when checking if jlahoda@2564: * deferred attribution is needed jlahoda@2564: * @compile T8056984.java jlahoda@2564: */ jlahoda@2564: class T8056984 { jlahoda@2564: public T8056984(T1 t1, T2 t2) { jlahoda@2564: System.err.println(t1.hashCode()); jlahoda@2564: System.err.println(t2.hashCode()); jlahoda@2564: } jlahoda@2564: } jlahoda@2564: class B { jlahoda@2564: } jlahoda@2564: interface C { jlahoda@2564: public int hashCode(); jlahoda@2564: }