----- Original Message -----
> From: "Brian Goetz" <brian.go...@oracle.com>
> To: "Peter Levart" <peter.lev...@gmail.com>
> Cc: "valhalla-spec-experts" <valhalla-spec-experts@openjdk.java.net>
> Sent: Dimanche 27 Juin 2021 22:01:21
> Subject: Re: [External] : Re: JEP 401 -- reflection and class literals

>>
>>
>> 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.

java.lang.reflect and java.lang.invoke are actually second class citizen APIs, 
they are built that way.
At least until we have to deal with API points throwing Throwable where the 
only sensible way to deal with it is to rethrow it.

RĂ©mi

Reply via email to