mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
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:
parent
a4e10d2aad
commit
1823b93919
1 changed files with 1 additions and 1 deletions
|
@ -1299,7 +1299,7 @@ public class LambdaToMethod extends TreeTranslator {
|
||||||
buf.append(owner.name);
|
buf.append(owner.name);
|
||||||
buf.append('$');
|
buf.append('$');
|
||||||
int methTypeHash = methodSig(owner.type).hashCode();
|
int methTypeHash = methodSig(owner.type).hashCode();
|
||||||
buf.append(methTypeHash);
|
buf.append(Integer.toHexString(methTypeHash));
|
||||||
buf.append('$');
|
buf.append('$');
|
||||||
String temp = buf.toString();
|
String temp = buf.toString();
|
||||||
Integer count = serializableLambdaCounts.get(temp);
|
Integer count = serializableLambdaCounts.get(temp);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue