Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8077229

sun.reflect.ConstantPool should support class and method constant pools

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 9
    • Fix Version/s: tbd_major
    • Component/s: core-libs
    • Labels:
      None

      Description

      The current implementation of sun.reflect.ConstantPool only works for constant pools of classes. Some methods, like JSR 292 signature-polymorphic intrinsics, don't share the constant pool with their holder class but they have their own. In other words:

      m->constants() != m->method_holder()->constants()

      sun.reflect.ConstantPool should be extended to support these methods too.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              twisti Christian Thalinger
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: