hg: jdk8/tl/jdk: 7088913: Add compatible static hashCode(primitive) to primitive wrapper classes
mike.duigou at oracle.com
mike.duigou at oracle.com
Tue Nov 13 20:19:42 PST 2012
Changeset: be1fb42ef696
Author: mduigou
Date: 2012-11-13 20:02 -0800
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/be1fb42ef696
7088913: Add compatible static hashCode(primitive) to primitive wrapper classes
Summary: Adds static utility methods to each primitive wrapper class to allow calculation of a hashCode value from an unboxed primitive.
Reviewed-by: darcy, smarks, dholmes
! src/share/classes/java/lang/Boolean.java
! src/share/classes/java/lang/Byte.java
! src/share/classes/java/lang/Character.java
! src/share/classes/java/lang/Double.java
! src/share/classes/java/lang/Float.java
! src/share/classes/java/lang/Integer.java
! src/share/classes/java/lang/Long.java
! src/share/classes/java/lang/Short.java
! test/java/lang/HashCode.java
More information about the compiler-dev
mailing list