Constant API and Q-type

Brian Goetz brian.goetz at oracle.com
Thu Nov 1 20:21:20 UTC 2018


You can always use ClassDesc.ofDescriptor("QFoo;") to describe a Q-type; 
the only thing that has to change is the descriptor validator code.

The current behavior of ClassDesc.of(String) produces an L-type; we 
could add ofValue(String) to choose Q-ness, or an asValue() instance 
method to swap L->Q, and isValue() to query L/Q. Everything else built 
on top (e.g., MethodType) should just work.

What am I missing?



On 11/1/2018 4:10 PM, Remi Forax wrote:
> Hi,
> did you have a plan for the introduction of the Q-types of valhalla in the constant API ?
>
> Introducing Q-types in the ASM API is not that simple, so i suppose you have the same kind of challenges.
>
> Rémi



More information about the amber-spec-experts mailing list