Thu, 31 Aug 2017 15:17:03 +0800
merge
aoqi@0 | 1 | /** |
aoqi@0 | 2 | * @test /nodynamiccopyright/ |
aoqi@0 | 3 | * @bug 6718364 |
aoqi@0 | 4 | * @summary inference fails when a generic method is invoked with raw arguments |
aoqi@0 | 5 | * @compile/ref=T6718364.out -XDrawDiagnostics -Xlint:unchecked T6718364.java |
aoqi@0 | 6 | */ |
aoqi@0 | 7 | class T6718364 { |
aoqi@0 | 8 | class X<T> {} |
aoqi@0 | 9 | |
aoqi@0 | 10 | public <T> void m(X<T> x, T t) {} |
aoqi@0 | 11 | |
aoqi@0 | 12 | public void test() { |
aoqi@0 | 13 | m(new X<X<Integer>>(), new X()); |
aoqi@0 | 14 | } |
aoqi@0 | 15 | } |