Thu, 21 Feb 2013 15:26:46 +0000
8007461: Regression: bad overload resolution when inner class and outer class have method with same name
Summary: Fix regression in varargs method resolution introduced by bad refactoring
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 | } |