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

Add bootstrap methods for getting array elements

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 16
    • core-libs

      Add a set of bootstrap methods to ConstantBootstraps for retrieving array elements of various array types.

      This could be useful for instance when a dynamic constant resolves to an array, and specific elements need to be loaded for downstream dynamic constants. (for example, a hidden class defined with class data, which is an Object[], and needs to load elements from that array into the constant pool as well, for fast access).

      The current solution for clients is either to define a custom bootstrap method, or to create an array element getter method handle, and use that in a downstream condy (somewhat convoluted).

            jvernee Jorn Vernee
            jvernee Jorn Vernee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: