RFR: 8311084: Add typeSymbol() API for applicable constant pool entries [v2]

Chen Liang liach at openjdk.org
Wed Sep 20 07:35:42 UTC 2023


On Fri, 30 Jun 2023 02:42:08 GMT, Chen Liang <liach at openjdk.org> wrote:

>> 5 Constant Pool entries, namely ConstantDynamicEntry, InvokeDynamicEntry, FieldRefEntry, MethodRefEntry, and InterfaceMethodRefEntry should have a typeSymbol() API to return the nominal/symbolic descriptor (ClassDesc or MethodTypeDesc).
>> 
>> This API is not added to NameAndTypeEntry itself, for a NameAndTypeEntry only knows if its type should be a field or method type from the other entries that refer to it.
>> 
>> This is one of the issues discussed in this mailing list thread: https://mail.openjdk.org/pipermail/classfile-api-dev/2023-June/000381.html
>
> Chen Liang has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Use typeSymbol in asSymbol

@asotona Can you review this Classfile API utility addition?

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

PR Comment: https://git.openjdk.org/jdk/pull/14706#issuecomment-1727129377


More information about the core-libs-dev mailing list