RFR (javac) 8029558: VerifyError: Bad return type when lambda's body is in parentheses

Jonathan Gibbons jonathan.gibbons at oracle.com
Fri Dec 6 13:46:41 PST 2013


Is this for jdk8/tl?   If so, then compiler-dev would be a better forum.

The two tests look very similar. Are they materially different?

-- Jon

On 12/06/2013 01:45 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 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

More information about the lambda-dev mailing list