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

Wed, 01 Sep 2010 03:19:16 -0700

author
jrose
date
Wed, 01 Sep 2010 03:19:16 -0700
changeset 665
d3ead6731a91
parent 0
959103a6100f
permissions
-rw-r--r--

6979683: inconsistent interaction of reference cast with box/unbox conversions leaves out a useful case
Summary: Allow casts which narrow and then unbox.
Reviewed-by: mcimadamore

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

mercurial