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

Unnecessary cast in LambdaToMethod

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 13
    • None
    • tools
    • b24

    Backports

      Description

        com.sun.tools.javac.comp.LambdaToMethod.makeMetafactoryIndyCall calls .toHandle() on a MethodHandleSymbol, a method whose only implementation is {return this;}. Instead, it should simply use the MethodHandleSymbol as-is.

        http://hg.openjdk.java.net/jdk/jdk/file/a573f58bc798/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java#l1096

        Attachments

          Issue Links

            Activity

              People

                cushon Liam Miller-Cushon
                cushon Liam Miller-Cushon
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: