jdk-24/test/langtools/tools/javac/generics/5009937/T5009937.java
2017-09-12 19:03:39 +02:00

19 lines
402 B
Java

/*
* @test /nodynamiccopyright/
* @bug 5009937
* @summary hiding versus generics versus binary compatibility
* @author Maurizio Cimadamore
*
* @compile/fail/ref=T5009937.out -XDrawDiagnostics T5009937.java
*/
public class T5009937<X> {
static class A {
static void m(T5009937<String> l) {}
}
static class B extends A {
static void m(T5009937<Integer> l) {}
}
}