jdk-24/langtools/test/tools/javac/generics/CheckNoDuplicateErrors.java
Srikanth Adayapalam b79126e437 8073616: Duplicate error message: cannot inherit from final (class) F
Ensure that the compiler does not emit duplicate errors at slightly different source positions.

Reviewed-by: mcimadamore
2015-11-13 18:09:36 +05:30

17 lines
558 B
Java

/*
* @test /nodynamiccopyright/
* @bug 8073616
* @summary Ensure compiler does not emit duplicate error messages at slightly different source positions
*
* @compile/fail/ref=CheckNoDuplicateErrors.out -XDrawDiagnostics CheckNoDuplicateErrors.java
*/
import java.util.ArrayList;
final class CheckNoDuplicateErrors_01<T> {}
public class CheckNoDuplicateErrors extends CheckNoDuplicateErrors_01<String>
implements ArrayList<String> {
CheckNoDuplicateErrors_01 f = new CheckNoDuplicateErrors_01<String> () { };
}