Mon, 26 Mar 2012 15:28:49 +0100
7133185: Update 292 overload resolution logic to match JLS
Summary: Re-implement special overload resolution support for method handles according to the JLS SE 7 definition
Reviewed-by: jjg, dlsmith, jrose
1 /*
2 * @test /nodynamiccopyright/
3 * @bug 6970584 7060926
4 * @summary Attr.PostAttrAnalyzer misses a case
5 *
6 * @compile/fail/ref=FailOver15.out -XDrawDiagnostics -XDshouldStopPolicy=FLOW -XDdev FailOver15.java
7 */
9 class Test {
10 void m() {
11 new UnknownClass<String, Void>() {
12 public String getString() {
13 String s = "";
14 s += "more";
15 return s;
16 }
17 }
18 }
19 }