24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 5060485 |
26 * @bug 5060485 |
27 * @summary The scope of a class type parameter is too wide |
27 * @summary The scope of a class type parameter is too wide |
28 * @author Peter von der Ah\u00e9 |
28 * @author Peter von der Ah\u00e9 |
29 * @compile/fail Compatibility.java |
29 * @compile/fail/ref=Compatibility.out -XDrawDiagnostics Compatibility.java |
30 */ |
30 */ |
31 |
31 |
32 class NumberList<T extends Number> {} |
32 class NumberList<T extends Number> {} |
33 |
33 |
34 class Test<Y extends Number> { |
34 class Test<Y extends Number> { |