1/*
2 * @test /nodynamiccopyright/
3 * @bug 5073079
4 * @summary Allow unchecked override of generified methods in
5 * parameterless classes
6 * @author Peter von der Ah\u00e9
7 *
8 * @compile Warn1.java
9 * @compile/fail/ref=Warn1.out -XDrawDiagnostics -Xlint:unchecked -Werror Warn1.java
10 */
11
12interface Attribute<T> { }
13
14interface AttributeSet1 {
15    <T> Attribute<T> get(Class<T> category);
16}
17
18class AttributeSet1Impl implements AttributeSet1 {
19    public Attribute get(Class category) { return null; }
20}
21