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

Use hex representation of method signature hashcode to avoid negative numbers

Reviewed-by: jjg
This commit is contained in:
Maurizio Cimadamore 2013-03-06 15:33:39 +00:00
parent a4e10d2aad
commit 1823b93919

View File

@ -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);