jdk-24/langtools/test/tools/javac/Diagnostics/compressed/T8020286.java
Maurizio Cimadamore 732e49f6dc 8020286: Wrong diagnostic after compaction
Compact diagnostic shows the least relevant method in the list

Reviewed-by: jjg
2013-07-17 14:14:32 +01:00

16 lines
316 B
Java

/**
* @test /nodynamiccopyright/
* @bug 8020286
* @summary Wrong diagnostic after compaction
* @compile/fail/ref=T8020286.out -XDrawDiagnostics -Xdiags:compact T8020286.java
*/
class T8020286 {
void m(String s) { }
void m(Integer i, String s) { }
void test() {
m(1, 1);
m(1);
}
}