[lworld] RFR: JDK-8247795 allow factory methods for inline types to return j.l.Obje…

Mandy Chung mchung at openjdk.java.net
Fri Jun 19 20:08:48 UTC 2020


On Fri, 19 Jun 2020 13:08:44 GMT, Harold Seigel <hseigel at openjdk.org> wrote:

> Expect the return type for the <init> factory methods of hidden inline classes to return type java.lang.Object.  Also,
> fix issue so that Reflection::new_constructor(), not new_method(), is called for <init> factory methods.

I consider this fix is a workaround to allow prototyping inline hidden class (for example to convert lambda proxy class
to inline class).   We need to sort out JVM spec issues - what return types should be allowed?  JDK-8224057 is a
companion issue.

-------------

PR: https://git.openjdk.java.net/valhalla/pull/94


More information about the valhalla-dev mailing list