hg: jdk7/tl/langtools: 6979683: inconsistent interaction of reference cast with box/unbox conversions leaves out a useful case

Neal Gafter neal at gafter.com
Wed Sep 1 17:43:52 PDT 2010


John-

You appear to have added a new kind of casting conversion not yet proposed
or described in JLS3 (section 5.5).  Is there a language change proposal
that corresponds to this code change?

-Neal

On Wed, Sep 1, 2010 at 4:35 AM, <john.r.rose at oracle.com> wrote:

> Changeset: d3ead6731a91
> Author:    jrose
> Date:      2010-09-01 03:19 -0700
> URL:       http://hg.openjdk.java.net/jdk7/tl/langtools/rev/d3ead6731a91
>
> 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
>
> ! src/share/classes/com/sun/tools/javac/code/Types.java
> ! src/share/classes/com/sun/tools/javac/comp/Lower.java
> + test/tools/javac/6979683/TestCast6979683_BAD34.java
> + test/tools/javac/6979683/TestCast6979683_BAD34.java.errlog
> + test/tools/javac/6979683/TestCast6979683_BAD35.java
> + test/tools/javac/6979683/TestCast6979683_BAD35.java.errlog
> + test/tools/javac/6979683/TestCast6979683_BAD36.java
> + test/tools/javac/6979683/TestCast6979683_BAD36.java.errlog
> + test/tools/javac/6979683/TestCast6979683_BAD37.java
> + test/tools/javac/6979683/TestCast6979683_BAD37.java.errlog
> + test/tools/javac/6979683/TestCast6979683_BAD38.java
> + test/tools/javac/6979683/TestCast6979683_BAD38.java.errlog
> + test/tools/javac/6979683/TestCast6979683_BAD39.java
> + test/tools/javac/6979683/TestCast6979683_BAD39.java.errlog
> + test/tools/javac/6979683/TestCast6979683_GOOD.java
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20100901/021f5104/attachment.html 


More information about the compiler-dev mailing list