test/tools/javac/literals/BadBinaryLiterals.7.out

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

author
mcimadamore
date
Fri, 28 Jan 2011 12:01:07 +0000
changeset 844
2088e674f0e0
parent 0
959103a6100f
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

     1 BadBinaryLiterals.java:11:24: compiler.err.expected: ';'
     2 BadBinaryLiterals.java:13:21: compiler.err.int.number.too.large: 111111111111111111111111111111111
     3 BadBinaryLiterals.java:15:21: compiler.err.int.number.too.large: 11111111111111111111111111111111111111111111111111111111111111111
     4 BadBinaryLiterals.java:16:27: compiler.err.expected: ';'
     5 BadBinaryLiterals.java:17:27: compiler.err.expected: ';'
     6 BadBinaryLiterals.java:17:30: compiler.err.expected: token.identifier
     7 6 errors

mercurial