1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/tools/javac/Diagnostics/compressed/T8012003a.java Wed May 15 14:00:31 2013 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 +/** 1.5 + * @test /nodynamiccopyright/ 1.6 + * @bug 8012003 1.7 + * @summary Method diagnostics resolution need to be simplified in some cases 1.8 + * test general overload resolution simplifications 1.9 + * @compile/fail/ref=T8012003a.out -XDrawDiagnostics -Xdiags:compact T8012003a.java 1.10 + */ 1.11 + 1.12 +class T8012003a { 1.13 + void m1(Integer i) { } 1.14 + 1.15 + void m2(Integer i) { } 1.16 + void m2(Integer i, Object o) { } 1.17 + 1.18 + void m3(Integer i) { } 1.19 + void m3(String s) { } 1.20 + 1.21 + void test() { 1.22 + m1(""); 1.23 + m1(false ? "" : ""); 1.24 + m2(""); 1.25 + m3('x'); 1.26 + } 1.27 +}