Vicente Romero a7cc024b53 8161020: javac, fold stop compilation options
Reviewed-by: mcimadamore
2016-07-11 15:27:52 -07:00

20 lines
440 B
Java

/*
* @test /nodynamiccopyright/
* @bug 6970584 7060926
* @summary Attr.PostAttrAnalyzer misses a case
*
* @compile/fail/ref=FailOver15.out -XDrawDiagnostics -Xshouldstop:at=FLOW -XDdev FailOver15.java
*/
class Test {
void m() {
new UnknownClass<String, Void>() {
public String getString() {
String s = "";
s += "more";
return s;
}
}
}
}