langtools/test/tools/javac/T6567414.java
author jlahoda
Tue, 17 Dec 2013 10:55:59 +0100
changeset 22153 f9f06fcca59d
parent 4704 5206047418c2
permissions -rw-r--r--
8029800: Flags.java uses String.toLowerCase without specifying Locale Summary: Introducing StringUtils.toLowerCase/toUpperCase independent on the default locale, converting almost all usages of String.toLowerCase/toUpperCase to use the new methods. Reviewed-by: jjg, bpatel
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4704
5206047418c2 6472751: SourcePositions.getStartPos returns incorrect value for enum constants
jjg
parents:
diff changeset
     1
/*
5206047418c2 6472751: SourcePositions.getStartPos returns incorrect value for enum constants
jjg
parents:
diff changeset
     2
 * @test /nodynamiccopyright/
5206047418c2 6472751: SourcePositions.getStartPos returns incorrect value for enum constants
jjg
parents:
diff changeset
     3
 * @bug 6567414
5206047418c2 6472751: SourcePositions.getStartPos returns incorrect value for enum constants
jjg
parents:
diff changeset
     4
 * @summary javac compiler reports no source file or line on enum constant declaration error
5206047418c2 6472751: SourcePositions.getStartPos returns incorrect value for enum constants
jjg
parents:
diff changeset
     5
 * @compile/fail/ref=T6567414.out -XDrawDiagnostics T6567414.java
5206047418c2 6472751: SourcePositions.getStartPos returns incorrect value for enum constants
jjg
parents:
diff changeset
     6
 */
5206047418c2 6472751: SourcePositions.getStartPos returns incorrect value for enum constants
jjg
parents:
diff changeset
     7
enum Test {
5206047418c2 6472751: SourcePositions.getStartPos returns incorrect value for enum constants
jjg
parents:
diff changeset
     8
  FOO;
5206047418c2 6472751: SourcePositions.getStartPos returns incorrect value for enum constants
jjg
parents:
diff changeset
     9
  Test() throws Exception {}
5206047418c2 6472751: SourcePositions.getStartPos returns incorrect value for enum constants
jjg
parents:
diff changeset
    10
}
5206047418c2 6472751: SourcePositions.getStartPos returns incorrect value for enum constants
jjg
parents:
diff changeset
    11