RFR JDK-8209896: [lworld] IncompatibleClassChangeError thrown when defining a lambda within value type

mandy chung mandy.chung at oracle.com
Tue Aug 28 20:50:18 UTC 2018


The lambda proxy generator currently generates ValueTypes attribute
to list the value types that are declared in parameter types and
return type.  But it misses the case when a lambda body is defined
in a value class but no value type declared in its signature.

This is a simple fix in InnerClassLambdaMetafactory.  I added
the test cases for lambda, core reflection, and method handles.

Webrev at:
http://cr.openjdk.java.net/~mchung/valhalla/webrevs/8209896/webrev.00/

Mandy



More information about the valhalla-dev mailing list