author | alundblad |
Fri, 10 Jan 2014 12:47:15 +0100 | |
changeset 22440 | d40c30326317 |
permissions | -rw-r--r-- |
22440
d40c30326317
8028389: NullPointerException compiling annotation values that have bodies
alundblad
parents:
diff
changeset
|
1 |
/* |
d40c30326317
8028389: NullPointerException compiling annotation values that have bodies
alundblad
parents:
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
d40c30326317
8028389: NullPointerException compiling annotation values that have bodies
alundblad
parents:
diff
changeset
|
3 |
* @bug 8028389 |
d40c30326317
8028389: NullPointerException compiling annotation values that have bodies
alundblad
parents:
diff
changeset
|
4 |
* @summary javac should output a proper error message when given something |
d40c30326317
8028389: NullPointerException compiling annotation values that have bodies
alundblad
parents:
diff
changeset
|
5 |
* like new Object(){} as annotation argument. |
d40c30326317
8028389: NullPointerException compiling annotation values that have bodies
alundblad
parents:
diff
changeset
|
6 |
* |
d40c30326317
8028389: NullPointerException compiling annotation values that have bodies
alundblad
parents:
diff
changeset
|
7 |
* @compile AnonSubclassOnPkg.java |
d40c30326317
8028389: NullPointerException compiling annotation values that have bodies
alundblad
parents:
diff
changeset
|
8 |
* @compile/fail/ref=package-info.out -XDrawDiagnostics package-info.java |
d40c30326317
8028389: NullPointerException compiling annotation values that have bodies
alundblad
parents:
diff
changeset
|
9 |
*/ |
d40c30326317
8028389: NullPointerException compiling annotation values that have bodies
alundblad
parents:
diff
changeset
|
10 |
|
d40c30326317
8028389: NullPointerException compiling annotation values that have bodies
alundblad
parents:
diff
changeset
|
11 |
@AnonSubclassOnPkg(new Object(){}) |
d40c30326317
8028389: NullPointerException compiling annotation values that have bodies
alundblad
parents:
diff
changeset
|
12 |
package pkg; |