1/* 2 * @test /nodynamiccopyright/ 3 * @bug 5046972 4 * @summary type parameter referenced in static inner class improperly allowed! 5 * @author gafter 6 * 7 * @compile/fail/ref=TyparamStaticScope2.out -XDrawDiagnostics TyparamStaticScope2.java 8 */ 9 10package typaram.static_.scope2; 11 12class JBug<T> { 13 static class Inner1 implements Set<T> {} 14} 15 16interface Set<T> {} 17