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 ------------- Commit messages: - Add typeSymbol API for a few constant pool entries Changes: https://git.openjdk.org/jdk/pull/14706/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14706&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8311084 Stats: 46 lines in 7 files changed: 44 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/14706.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/14706/head:pull/14706 PR: https://git.openjdk.org/jdk/pull/14706