langtools/test/tools/javac/T6567414.java
author jeff
Wed, 22 Jun 2011 10:10:54 -0700
changeset 9916 c35ecac744a5
parent 4704 5206047418c2
permissions -rw-r--r--
7057046: Add embedded license to THIRD PARTY README Reviewed-by: lana

/*
 * @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 {}
}