langtools/test/tools/javac/T6567414.java
author jjg
Mon, 24 Jan 2011 16:38:56 -0800
changeset 8223 638daa596494
parent 4704 5206047418c2
permissions -rw-r--r--
6988106: javac report 'java.lang.IllegalMonitorStateException' Reviewed-by: ksrini

/*
 * @test /nodynamiccopyright/
 * @bug 6567414
 * @summary javac compiler reports no source file or line on enum constant declaration error
 * @compile/fail/ref=T6567414.out -XDrawDiagnostics T6567414.java
 */
enum Test {
  FOO;
  Test() throws Exception {}
}