Authors: russell@unturf.com · brackishbert@gmail.com · foxhop.net · TimeHexOn.com Patches, unit tests, benchmarks, whitepaper, and outreach briefs. Public domain — no copyright claimed. Use freely.
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();
|
|
}
|