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

MethodHandle: Update description of signature-polymorphic descriptor

    XMLWordPrintable

    Details

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

      Description

      When VarHandles were introduced, the rules about the descriptor produced at compile-time for signature-polymorphic invocations were updated. Specifically, a non-Object declared return type is not treated as polymoprhic (See JLS 15.12.3).

      "If the signature polymorphic method is either void or has a return type other than Object, the compile-time result is the result of the invocation type of the compile-time declaration"

      The javadoc in MethodHandle should be updated to reflect this change.

      "The unusual part is that the symbolic type descriptor is derived from the actual argument and return types, not from the method declaration."

        Attachments

          Activity

            People

            • Assignee:
              mchung Mandy Chung
              Reporter:
              dlsmith Dan Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: