Tue, 20 Aug 2013 17:34:06 +0400
7182350: Regression in wording of unchecked warning message
Reviewed-by: mcimadamore, jjg
1 /**
2 * @test /nodynamiccopyright/
3 * @bug 8019824
4 * @summary very long error messages on inference error
5 * @compile/fail/ref=T8019824.out -XDrawDiagnostics T8019824.java
6 */
7 class T8019824 {
8 void test(Class<? extends Foo<?, ?>> cls) {
9 Foo<?, ?> foo = make(cls);
10 }
12 <A, B, C extends Foo<A, B>> Foo<A, B> make(Class<C> cls) { return null; }
14 interface Foo<A, B> {}
15 }