test/tools/javac/generics/inference/6718364/T6718364.java

Thu, 31 Aug 2017 15:17:03 +0800

author
aoqi
date
Thu, 31 Aug 2017 15:17:03 +0800
changeset 2525
2eb010b6cb22
parent 611
4172cfff05f0
parent 0
959103a6100f
permissions
-rw-r--r--

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 }

mercurial