Mon, 23 Sep 2013 17:27:38 +0400
7154966: CRs found to be in Fixed state with no test and no noreg- keyword.
Reviewed-by: ksrini
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 */
9 class T8012003a {
10 void m1(Integer i) { }
12 void m2(Integer i) { }
13 void m2(Integer i, Object o) { }
15 void m3(Integer i) { }
16 void m3(String s) { }
18 void test() {
19 m1("");
20 m1(false ? "" : "");
21 m2("");
22 m3('x');
23 }
24 }