mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-29 12:38:24 +00:00
13 lines
337 B
Java
13 lines
337 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 8028389
|
|
* @summary javac should output a proper error message when given something
|
|
* like new Object(){} as annotation argument.
|
|
*
|
|
* @compile AnonSubclassOnPkg.java
|
|
* @compile/fail/ref=package-info.out -XDrawDiagnostics package-info.java
|
|
*/
|
|
|
|
@AnonSubclassOnPkg(new Object(){})
|
|
package pkg;
|