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

JSR 292 needs method handle constants

XMLWordPrintable

    • b04
    • generic
    • generic
    • Verified

        In order to compile constant references to method handles and method types, the constant pool structure needs to be able to represent method handle references, and the ldc instruction updated (as it was for Class constants).

        This feature completes the role of method handle as a lightweight but dynamic access point to any bytecode operation. Without the ability to perform 'ldc', building a handle to a proposed bytecode level member access is 1-2 orders of magnitude more expensive, requiring a reflective lookup.

        For a draft specification, see the package information in the JSR 292 javadoc. It is posted here for review:
          http://cr.openjdk.java.net/~jrose/pres/indy-javadoc-mlvm/

              jrose John Rose
              jrose John Rose
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: