Mon, 19 Jun 2017 14:51:25 -0700
Added tag jdk8u151-b02 for changeset 732e1bab2660
jlahoda@2564 | 1 | /* |
jlahoda@2564 | 2 | * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. |
jlahoda@2564 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
jlahoda@2564 | 4 | * |
jlahoda@2564 | 5 | * This code is free software; you can redistribute it and/or modify it |
jlahoda@2564 | 6 | * under the terms of the GNU General Public License version 2 only, as |
jlahoda@2564 | 7 | * published by the Free Software Foundation. |
jlahoda@2564 | 8 | * |
jlahoda@2564 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
jlahoda@2564 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
jlahoda@2564 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
jlahoda@2564 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
jlahoda@2564 | 13 | * accompanied this code). |
jlahoda@2564 | 14 | * |
jlahoda@2564 | 15 | * You should have received a copy of the GNU General Public License version |
jlahoda@2564 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
jlahoda@2564 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
jlahoda@2564 | 18 | * |
jlahoda@2564 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
jlahoda@2564 | 20 | * or visit www.oracle.com if you need additional information or have any |
jlahoda@2564 | 21 | * questions. |
jlahoda@2564 | 22 | */ |
jlahoda@2564 | 23 | |
jlahoda@2564 | 24 | /* |
jlahoda@2564 | 25 | * @test |
jlahoda@2564 | 26 | * @bug 8056984 |
jlahoda@2564 | 27 | * @summary Ensure that method resolution runs over a captured type variables when checking if |
jlahoda@2564 | 28 | * deferred attribution is needed |
jlahoda@2564 | 29 | * @compile T8056984.java |
jlahoda@2564 | 30 | */ |
jlahoda@2564 | 31 | class T8056984<T1 extends B&C, T2 extends T1> { |
jlahoda@2564 | 32 | public T8056984(T1 t1, T2 t2) { |
jlahoda@2564 | 33 | System.err.println(t1.hashCode()); |
jlahoda@2564 | 34 | System.err.println(t2.hashCode()); |
jlahoda@2564 | 35 | } |
jlahoda@2564 | 36 | } |
jlahoda@2564 | 37 | class B { |
jlahoda@2564 | 38 | } |
jlahoda@2564 | 39 | interface C { |
jlahoda@2564 | 40 | public int hashCode(); |
jlahoda@2564 | 41 | } |