hg: jdk7/tl/langtools: 6979683: inconsistent interaction of reference cast with box/unbox conversions leaves out a useful case
Ulf Zibis
Ulf.Zibis at gmx.de
Thu Sep 2 12:30:16 PDT 2010
Am 02.09.2010 20:50, schrieb Rémi Forax:
> Le 02/09/2010 20:21, Ulf Zibis a écrit :
>> Hi,
>>
>> is Bug ID: 6775385 NPE caused by ConditionalExpression and auto-boxing failure
>> <http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6775385>
>> concerned by this bug ?
>>
>> -Ulf
>
> I don't think so, section 15.25 of JLS3 is clear.
> For a conditional ?:, if one parameter is a primitive and the other is a wrapper
> of a numeric type, the wrapper must be unboxed.
>
I think, it's worth to change the spec here.
-Ulf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20100902/82d16e09/attachment.html
More information about the compiler-dev
mailing list