test/tools/javac/InnerNamedConstant_2.out

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

author
mcimadamore
date
Fri, 28 Jan 2011 12:01:07 +0000
changeset 844
2088e674f0e0
parent 830
02e6e7dd1a64
child 2525
2eb010b6cb22
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

mcimadamore@830 1 InnerNamedConstant_2.java:22:20: compiler.err.icls.cant.have.static.decl: InnerNamedConstant_2.Inner2
mcimadamore@830 2 InnerNamedConstant_2.java:23:29: compiler.err.icls.cant.have.static.decl: InnerNamedConstant_2.Inner2
jjg@69 3 InnerNamedConstant_2.java:25:13: compiler.err.cant.assign.val.to.final.var: z
mcimadamore@830 4 InnerNamedConstant_2.java:34:26: compiler.err.icls.cant.have.static.decl: InnerNamedConstant_2.Inner3
duke@1 5 4 errors

mercurial