On Wed, 15 Mar 2023 02:18:37 GMT, Chen Liang <li...@openjdk.org> wrote:

> Add Constant Descriptors for DirectMethodHandleDesc of 
> MethodHandles::classData and classDataAt in ConstantDescs. This facilitates 
> easier access of class data via condy in Classfile API-generated bytecode. 
> Most other constant bootstrap methods provided in the JDK, notably from 
> `ConstantBootstraps`, already have constant descriptors in ConstantDescs.
> 
> Context: 
> https://mail.openjdk.org/pipermail/classfile-api-dev/2023-March/000235.html

P.S. we don't seem to have a test for this class at the moment (except 
indirectly), but it might be nice to add a test that iterates over all the 
fields in this class, and tries to resolve them, to make sure that that works.

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

PR: https://git.openjdk.org/jdk/pull/13033

Reply via email to