|
1 /** |
|
2 * @test /nodynamiccopyright/ |
|
3 * @bug 8012003 |
|
4 * @summary Method diagnostics resolution need to be simplified in some cases |
|
5 * test general overload resolution simplifications |
|
6 * @compile/fail/ref=T8012003a.out -XDrawDiagnostics -Xdiags:compact T8012003a.java |
|
7 */ |
|
8 |
|
9 class T8012003a { |
|
10 void m1(Integer i) { } |
|
11 |
|
12 void m2(Integer i) { } |
|
13 void m2(Integer i, Object o) { } |
|
14 |
|
15 void m3(Integer i) { } |
|
16 void m3(String s) { } |
|
17 |
|
18 void test() { |
|
19 m1(""); |
|
20 m1(false ? "" : ""); |
|
21 m2(""); |
|
22 m3('x'); |
|
23 } |
|
24 } |