[lworld] RFR: 8273301: [lworld] Bootstrap of instance-capturing lambda fails for reference favoring primitive types.
dlsmith at openjdk.java.net
Thu Sep 16 20:39:54 UTC 2021
On Thu, 2 Sep 2021 20:10:36 GMT, Jesper Steen Møller <jespersm at openjdk.org> wrote:
> Fix the test by adjusting bootstrap parameters, like it was fixed in JDK-8271583.
The Java 17 version of LambdaMetafactory requires that the parameter types of `factoryType` exactly match the implementation types.
I'm not sure whether there have been modifications in Valhalla. We could conceivably make some changes if it's useful.
Eventually, we'd like to align the conversions supported by LambdaMetafactory for all parameters/returns with those supported by `asType` (JDK-8174983). But I'm not sure which conversions `asType` would support in the context of Valhalla...
More information about the valhalla-dev