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

Unnecessary cast in LambdaToMethod

XMLWordPrintable

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

        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

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

                Created:
                Updated:
                Resolved: