jdk-24/langtools/test/tools/javac/Diagnostics/8010387/T8010387.java
Maurizio Cimadamore 7ee4846b45 8010387: Javac crashes when diagnostic mentions anonymous inner class' type variables
Rich formatter doesn't preprocess supertypes of an anonymous inner class

Reviewed-by: jjg
2013-03-22 12:44:48 +00:00

18 lines
397 B
Java

/**
* @test /nodynamiccopyright/
* @bug 8010387
* @summary rich diagnostic sometimes contain wrong type variable numbering
* @compile/fail/ref=T8010387.out -XDrawDiagnostics -XDdiags=disambiguateTvars,where T8010387.java
*/
abstract class T8010387<X> {
interface F<X> { }
<P> void test() {
m(new F<P>() { });
}
abstract <T> T8010387<?> m(F<? extends X> fx);
}