RFR JDK-8207194: [lworld] Update InnerClassLambdaMetafactory to add ValueTypes attribute in generated class

mandy chung mandy.chung at oracle.com
Sat Jul 14 01:14:08 UTC 2018


VarHandleTest* and ValueConstructorRef tests fail with ICCE with
ValueTypes consistency checking because lambda generated class
is missing ValueTypes attribute whereas the target class has
the value types locally declared in the attribute.

This patch updates InnerClassLambdaMetafactory to generate lambda
classes with ValueTypes attribute.  We will examine other class
file generators in JDK separately (JDK-8207315).  I also changed
ICCE to include the relevant info which is helpful for troubleshooting.
It may be useful to add a new method to return the list of declared
value types but leave it for another day.

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

I ran jdk_core, jdk_valhalla, and hotspot_valhalla test groups.

Mandy


More information about the valhalla-dev mailing list