RFR: 8304180: Constant Descriptors for MethodHandles::classData and classDataAt

Jorn Vernee jvernee at openjdk.org
Wed Mar 15 21:21:19 UTC 2023


On Wed, 15 Mar 2023 02:18:37 GMT, Chen Liang <liach at 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


More information about the core-libs-dev mailing list