提交 863e5216 编写于 作者: M mcimadamore

8010469: Bad assertion in LambdaToMethod

Summary: Add assertion in LambdaToMethod.serializedLambdaName
Reviewed-by: jjg
上级 8b0d9991
......@@ -1315,6 +1315,7 @@ public class LambdaToMethod extends TreeTranslator {
// the generated lambda method will not have type yet, but the
// enclosing method's name will have been generated with this same
// method, so it will be unique and never be overloaded.
Assert.check(owner.type != null || directlyEnclosingLambda() != null);
if (owner.type != null) {
int methTypeHash = methodSig(owner.type).hashCode();
buf.append(Integer.toHexString(methTypeHash));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册