changeset 28590 | 9069a3bf5900 |
child 30730 | d3ce7619db2c |
28589:cbf8df194957 | 28590:9069a3bf5900 |
---|---|
1 /** |
|
2 * @test /nodynamiccopyright/ |
|
3 * @bug 8069094 |
|
4 * @summary Verify that \\@SuppressWarnings("unchecked") works correctly for annotation default values |
|
5 * @build VerifySuppressWarnings |
|
6 * @compile/ref=T8069094.out -XDrawDiagnostics -Xlint:unchecked,deprecation,cast T8069094.java |
|
7 * @run main VerifySuppressWarnings T8069094.java |
|
8 */ |
|
9 |
|
10 @interface T8069094 { |
|
11 T8069094A foo() default T8069094A.Bar; |
|
12 } |
|
13 |
|
14 @Deprecated |
|
15 enum T8069094A { |
|
16 Bar |
|
17 } |