author | jlahoda |
Tue, 20 Jan 2015 12:00:25 +0100 | |
changeset 28590 | 9069a3bf5900 |
child 30730 | d3ce7619db2c |
permissions | -rw-r--r-- |
28590
9069a3bf5900
8069094: SuppressWarnings(\"deprecation\") not respected on default clause on annotation declarations
jlahoda
parents:
diff
changeset
|
1 |
/** |
9069a3bf5900
8069094: SuppressWarnings(\"deprecation\") not respected on default clause on annotation declarations
jlahoda
parents:
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
9069a3bf5900
8069094: SuppressWarnings(\"deprecation\") not respected on default clause on annotation declarations
jlahoda
parents:
diff
changeset
|
3 |
* @bug 8069094 |
9069a3bf5900
8069094: SuppressWarnings(\"deprecation\") not respected on default clause on annotation declarations
jlahoda
parents:
diff
changeset
|
4 |
* @summary Verify that \\@SuppressWarnings("unchecked") works correctly for annotation default values |
9069a3bf5900
8069094: SuppressWarnings(\"deprecation\") not respected on default clause on annotation declarations
jlahoda
parents:
diff
changeset
|
5 |
* @build VerifySuppressWarnings |
9069a3bf5900
8069094: SuppressWarnings(\"deprecation\") not respected on default clause on annotation declarations
jlahoda
parents:
diff
changeset
|
6 |
* @compile/ref=T8069094.out -XDrawDiagnostics -Xlint:unchecked,deprecation,cast T8069094.java |
9069a3bf5900
8069094: SuppressWarnings(\"deprecation\") not respected on default clause on annotation declarations
jlahoda
parents:
diff
changeset
|
7 |
* @run main VerifySuppressWarnings T8069094.java |
9069a3bf5900
8069094: SuppressWarnings(\"deprecation\") not respected on default clause on annotation declarations
jlahoda
parents:
diff
changeset
|
8 |
*/ |
9069a3bf5900
8069094: SuppressWarnings(\"deprecation\") not respected on default clause on annotation declarations
jlahoda
parents:
diff
changeset
|
9 |
|
9069a3bf5900
8069094: SuppressWarnings(\"deprecation\") not respected on default clause on annotation declarations
jlahoda
parents:
diff
changeset
|
10 |
@interface T8069094 { |
9069a3bf5900
8069094: SuppressWarnings(\"deprecation\") not respected on default clause on annotation declarations
jlahoda
parents:
diff
changeset
|
11 |
T8069094A foo() default T8069094A.Bar; |
9069a3bf5900
8069094: SuppressWarnings(\"deprecation\") not respected on default clause on annotation declarations
jlahoda
parents:
diff
changeset
|
12 |
} |
9069a3bf5900
8069094: SuppressWarnings(\"deprecation\") not respected on default clause on annotation declarations
jlahoda
parents:
diff
changeset
|
13 |
|
9069a3bf5900
8069094: SuppressWarnings(\"deprecation\") not respected on default clause on annotation declarations
jlahoda
parents:
diff
changeset
|
14 |
@Deprecated |
9069a3bf5900
8069094: SuppressWarnings(\"deprecation\") not respected on default clause on annotation declarations
jlahoda
parents:
diff
changeset
|
15 |
enum T8069094A { |
9069a3bf5900
8069094: SuppressWarnings(\"deprecation\") not respected on default clause on annotation declarations
jlahoda
parents:
diff
changeset
|
16 |
Bar |
9069a3bf5900
8069094: SuppressWarnings(\"deprecation\") not respected on default clause on annotation declarations
jlahoda
parents:
diff
changeset
|
17 |
} |