mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00

Made sure anonymous class declarations inside class- and package-level annotations are properly entered. Reviewed-by: jfranck
13 lines
332 B
Java
13 lines
332 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 8028389
|
|
* @summary javac should output a proper error message when given something
|
|
* like new Object(){} as annotation argument.
|
|
*
|
|
* @compile/fail/ref=AnonSubclass.out -XDrawDiagnostics AnonSubclass.java
|
|
*/
|
|
|
|
@AnonSubclass(new Object(){})
|
|
@interface AnonSubclass {
|
|
String value();
|
|
}
|