author | peterz |
Fri, 28 May 2010 13:32:40 +0400 | |
changeset 5594 | 3db39773da2e |
parent 4704 | 5206047418c2 |
permissions | -rw-r--r-- |
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 |