RFR (javac) 8029558: VerifyError: Bad return type when lambda's body is in parentheses
Jonathan Gibbons
jonathan.gibbons at oracle.com
Fri Dec 6 14:06:12 PST 2013
Looks OK to me, although (micro-nit) it would ne nice to see white space
around == and before ? in this part of the line
tree.body.type==null?
-- Jon
On 12/06/2013 01:54 PM, Robert Field wrote:
>
> Please review compiler (javac) fix for:
>
> https://bugs.openjdk.java.net/browse/JDK-8029558
>
> Webrev:
>
> http://cr.openjdk.java.net/~rfield/8029558v0/
> <http://cr.openjdk.java.net/%7Erfield/8029558v0/>
>
> Fix is to correctly treat the lambda body as a value returning entity
> rather than a void entity so that the correct type converting casts
> are generated. This is done by passing the erased type rather than
> null as the expected type.
>
> Thanks,
> Robert
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20131206/6115c9ab/attachment.html
More information about the compiler-dev
mailing list