[External] : Re: JEP 401 -- reflection and class literals

Brian Goetz brian.goetz at oracle.com
Sun Jun 27 20:01:21 UTC 2021


>
>
> Seems like we are forced to re-use Class objects to hold this 
> additional info. Remi says that there should only be "primary" (ref 
> type) primitive class literals (Foo.class) and no (Foo.ref.class or 
> Foo.val.class) and that val type mirrors should be obtained by calling 
> a method (such as Foo.class.asPrimitiveValType()), but that makes 
> methods/constructors using val-typed parameters second class citizens 
> when using reflection. 

And even worse with MethodHandle.




More information about the valhalla-spec-observers mailing list