--- old/src/share/classes/java/lang/Character.java 2011-09-20 12:56:30.000000000 -0700 +++ new/src/share/classes/java/lang/Character.java 2011-09-20 12:56:30.000000000 -0700 @@ -4409,6 +4409,18 @@ } /** + * Returns a hash code for a {@code char} value; compatible with + * {@code Character.hashCode()}. + * + * @since 1.8 + * + * @return a hash code value for a {@code char} value. + */ + public static int hashCode(char value) { + return (int)value; + } + + /** * Compares this object against the specified object. * The result is {@code true} if and only if the argument is not * {@code null} and is a {@code Character} object that @@ -6974,6 +6986,14 @@ public static final int SIZE = 16; /** + * The number of bytes used to represent a {@code char} value in unsigned + * binary form. + * + * @since 1.8 + */ + public static final int BYTES = SIZE / Byte.SIZE; + + /** * Returns the value obtained by reversing the order of the bytes in the * specified char value. *