提交 b7bf3363 编写于 作者: M mcimadamore

8009391: Synthetic name of serializable lambda methods should not contain negative numbers

Summary: Use hex representation of method signature hashcode to avoid negative numbers
Reviewed-by: jjg
上级 94865098
......@@ -1299,7 +1299,7 @@ public class LambdaToMethod extends TreeTranslator {
buf.append(owner.name);
buf.append('$');
int methTypeHash = methodSig(owner.type).hashCode();
buf.append(methTypeHash);
buf.append(Integer.toHexString(methTypeHash));
buf.append('$');
String temp = buf.toString();
Integer count = serializableLambdaCounts.get(temp);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册