Unnecessary cast in LambdaToMethod

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 13
    • Affects Version/s: None
    • Component/s: 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

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

                Created:
                Updated:
                Resolved: