1/* 2 * @test /nodynamiccopyright/ 3 * @bug 5090220 4 * @summary Autoboxing applied when calculating most-specific method 5 * @compile/fail/ref=T5090220.out -XDrawDiagnostics T5090220.java 6 */ 7 8class T5090220 { 9 static void foo(int i1, Integer i2) { 10 System.out.println("Integer"); 11 } 12 static void foo(Integer i1, double d) { 13 System.out.println("double"); 14 } 15 public static void main(String[] args) { 16 foo(5, 5); 17 } 18} 19