author | akulyakh |
Thu, 21 May 2015 11:41:04 -0700 | |
changeset 30730 | d3ce7619db2c |
parent 28590 | 9069a3bf5900 |
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 |
30730
d3ce7619db2c
8076543: Add @modules as needed to the langtools tests
akulyakh
parents:
28590
diff
changeset
|
5 |
* @modules jdk.compiler/com.sun.tools.javac.api |
d3ce7619db2c
8076543: Add @modules as needed to the langtools tests
akulyakh
parents:
28590
diff
changeset
|
6 |
* jdk.compiler/com.sun.tools.javac.code |
d3ce7619db2c
8076543: Add @modules as needed to the langtools tests
akulyakh
parents:
28590
diff
changeset
|
7 |
* jdk.compiler/com.sun.tools.javac.file |
d3ce7619db2c
8076543: Add @modules as needed to the langtools tests
akulyakh
parents:
28590
diff
changeset
|
8 |
* jdk.compiler/com.sun.tools.javac.tree |
28590
9069a3bf5900
8069094: SuppressWarnings(\"deprecation\") not respected on default clause on annotation declarations
jlahoda
parents:
diff
changeset
|
9 |
* @build VerifySuppressWarnings |
9069a3bf5900
8069094: SuppressWarnings(\"deprecation\") not respected on default clause on annotation declarations
jlahoda
parents:
diff
changeset
|
10 |
* @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
|
11 |
* @run main VerifySuppressWarnings T8069094.java |
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 |
@interface T8069094 { |
9069a3bf5900
8069094: SuppressWarnings(\"deprecation\") not respected on default clause on annotation declarations
jlahoda
parents:
diff
changeset
|
15 |
T8069094A foo() default T8069094A.Bar; |
9069a3bf5900
8069094: SuppressWarnings(\"deprecation\") not respected on default clause on annotation declarations
jlahoda
parents:
diff
changeset
|
16 |
} |
9069a3bf5900
8069094: SuppressWarnings(\"deprecation\") not respected on default clause on annotation declarations
jlahoda
parents:
diff
changeset
|
17 |
|
9069a3bf5900
8069094: SuppressWarnings(\"deprecation\") not respected on default clause on annotation declarations
jlahoda
parents:
diff
changeset
|
18 |
@Deprecated |
9069a3bf5900
8069094: SuppressWarnings(\"deprecation\") not respected on default clause on annotation declarations
jlahoda
parents:
diff
changeset
|
19 |
enum T8069094A { |
9069a3bf5900
8069094: SuppressWarnings(\"deprecation\") not respected on default clause on annotation declarations
jlahoda
parents:
diff
changeset
|
20 |
Bar |
9069a3bf5900
8069094: SuppressWarnings(\"deprecation\") not respected on default clause on annotation declarations
jlahoda
parents:
diff
changeset
|
21 |
} |