test/tools/javac/quid/T6999438.java

Fri, 28 Jan 2011 12:01:07 +0000

author
mcimadamore
date
Fri, 28 Jan 2011 12:01:07 +0000
changeset 844
2088e674f0e0
parent 752
03177f49411d
child 1042
defdd98cb7ce
permissions
-rw-r--r--

6910550: javac 1.5.0_17 fails with incorrect error message
Summary: multiple clashing members declared in same class should be added to the class' scope in order to avoid downstream spurious diagnostics
Reviewed-by: jjg

jjg@752 1 /* @test /nodynamiccopyright/
jjg@752 2 * @bug 6999438
jjg@752 3 * @summary remove support for exotic identifiers from JDK 7
jjg@752 4 * @compile/fail/ref=T6999438.out -XDrawDiagnostics -source 7 T6999438.java
jjg@752 5 */
jjg@752 6
jjg@752 7 class Test {
jjg@752 8 int #"not supported";
jjg@752 9 }

mercurial