JDK-8141615 : Add new public methods to sun.reflect.ConstantPool
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2015-11-06
  • Updated: 2017-02-09
  • Resolved: 2016-01-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b105Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
Add the following public methods to the class sun.reflect.ConstantPool:
1. "public Tag getTagAt(int index)" - to get tag of the CP entry at a specified index.
2.  "public String[] getNameAndTypeRefInfoAt(int index)" - to fetch name and type as an array of String of size 2 for NameAndType CP entry at a specified index.
3. "public String[] getInvokedynamicRefInfoAt(int index)" - to fetch name and type as an array of String of size 2 for InvokeDynamic CP entry at a specified index.
Comments
http://mail.openjdk.java.net/pipermail/hotspot-dev/2015-November/020649.html
13-11-2015

Methods are going to be used in JVMCI testing. They also could be applied to other things.
06-11-2015