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

Reimplement MethodHandleProxies.asInterfaceInstance

    XMLWordPrintable

Details

    • b08
    • generic
    • generic

    Description

      The initial implementation of MethodHandleProxies.asInterfaceInstance uses java.lang.reflect.Proxy.

      This exposes too much information; we do not want any public supertypes other than the requested SAM type and (perhaps) an extractor API MethodHandleProvider.

      In particular, we want to leave open the possibility of supporting SAM classes, which are inconsistent with a Proxy-based implementation.

      Also, the Proxy-based implementation is slow, since it uses reflective data structures to get its work done. A more direct method-handle approach will perform better.

      Attachments

        Issue Links

          There are no Sub-Tasks for this issue.

          Activity

            People

              liach Chen Liang
              jrose John Rose
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: