author | sogoel |
Wed, 02 Jul 2014 14:27:10 -0700 | |
changeset 25310 | a2e7f254f886 |
parent 5520 | 86e4b9a9da40 |
permissions | -rw-r--r-- |
10 | 1 |
/* |
25310
a2e7f254f886
8046770: .out files for assert, boxing, and overload tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
10 | 3 |
* @bug 5090220 |
4 |
* @summary Autoboxing applied when calculating most-specific method |
|
25310
a2e7f254f886
8046770: .out files for assert, boxing, and overload tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
5 |
* @compile/fail/ref=T5090220.out -XDrawDiagnostics T5090220.java |
10 | 6 |
*/ |
7 |
||
8 |
class 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 |
} |