changeset 16332:4297c99c4899

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
author mcimadamore
date Wed, 06 Mar 2013 15:33:39 +0000
parents fafe9741fb7e
children a6e1ded87200
files langtools/src/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/langtools/src/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java	Wed Mar 06 15:33:17 2013 +0000
+++ b/langtools/src/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java	Wed Mar 06 15:33:39 2013 +0000
@@ -1299,7 +1299,7 @@
             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);