jdk-24/test/langtools/tools/javac/generics/T4695348.java

13 lines
262 B
Java
Raw Normal View History

2007-12-01 00:00:00 +00:00
/*
* @test /nodynamiccopyright/
2007-12-01 00:00:00 +00:00
* @bug 4695348
* @summary generics: compiler allows ref to type bounds in static members
* @author gafter
*
* @compile/fail/ref=T4695348.out -XDrawDiagnostics T4695348.java
2007-12-01 00:00:00 +00:00
*/
class T4695348<T> {
static T x = null;
}