8224629: Unnecessary cast in LambdaToMethod
Reviewed-by: vromero
Contributed-by: Alan Malloy <amalloy@google.com>
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java Fri May 31 13:49:35 2019 -0700
+++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java Wed May 22 15:30:11 2019 -0700
@@ -1093,7 +1093,7 @@
MethodSymbol samSym = (MethodSymbol) types.findDescriptorSymbol(tree.target.tsym);
List<LoadableConstant> staticArgs = List.of(
typeToMethodType(samSym.type),
- ((MethodSymbol)refSym).asHandle(),
+ refSym.asHandle(),
typeToMethodType(tree.getDescriptorType(types)));
//computed indy arg types