On Thu, 29 Jun 2023 09:59:30 GMT, Chen Liang <li...@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 This pull request has now been integrated. Changeset: 1749ba26 Author: Chen Liang <li...@openjdk.org> Committer: Adam Sotona <asot...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/1749ba265b5761dbe2d9d77dac559984b179adf9 Stats: 48 lines in 7 files changed: 44 ins; 0 del; 4 mod 8311084: Add typeSymbol() API for applicable constant pool entries Reviewed-by: briangoetz, asotona ------------- PR: https://git.openjdk.org/jdk/pull/14706