Duplicate :
|
|
Relates :
|
|
Relates :
|
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.
|