8224629: Unnecessary cast in LambdaToMethod

Reviewed-by: vromero
This commit is contained in:
Alan Malloy 2019-05-22 15:30:11 -07:00 committed by Liam Miller-Cushon
parent 8dfd33c2b4
commit f573b23f72

@ -1093,7 +1093,7 @@ public class LambdaToMethod extends TreeTranslator {
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