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

Mon, 24 Jan 2011 15:44:51 +0000

author
mcimadamore
date
Mon, 24 Jan 2011 15:44:51 +0000
changeset 829
ce6175cfe11e
parent 611
4172cfff05f0
child 2525
2eb010b6cb22
permissions
-rw-r--r--

6968793: issues with diagnostics
Summary: several diagnostic improvements
Reviewed-by: jjg

mcimadamore@93 1 /**
jjg@384 2 * @test /nodynamiccopyright/
mcimadamore@93 3 * @bug 6718364
mcimadamore@93 4 * @summary inference fails when a generic method is invoked with raw arguments
jjg@611 5 * @compile/ref=T6718364.out -XDrawDiagnostics -Xlint:unchecked T6718364.java
mcimadamore@93 6 */
mcimadamore@93 7 class T6718364 {
mcimadamore@93 8 class X<T> {}
mcimadamore@93 9
mcimadamore@93 10 public <T> void m(X<T> x, T t) {}
mcimadamore@93 11
mcimadamore@93 12 public void test() {
mcimadamore@93 13 m(new X<X<Integer>>(), new X());
mcimadamore@93 14 }
mcimadamore@93 15 }

mercurial