Review Request: 7088913/7088952 : Additions to primitive wrappers
mike.duigou at oracle.com
Wed Sep 21 23:54:20 UTC 2011
I will create a request to add Boolean.SIZE though I am not sure adding a Boolean.BYTES is appropriate for something less than Byte.Size in size. Is it 1-bit? Is it 1-byte? The answer is dependant upon usage and I don't think we can force a single answer.
On Sep 21 2011, at 03:36 , Ulf Zibis wrote:
> why don't we have Boolean.SIZE and Boolean.BYTES ?
> Am 20.09.2011 22:11, schrieb Mike Duigou:
>> Hello all;
>> Here's a webrev for two small additions to the primitive wrapper types (Boolean, Byte, Character, Double, Float, Integer, Long, Short).
>> The webrev combines two issues:
>> 7088913: Add compatible static hashCode(primitive) to primitive wrapper classes
>> 7088952: Add "BYTES" constant to primitive wrapper classes
>> Stuart Marks has already peer reviewed this for me but a sharp eyed reader may catch something previously missed. As it's already been reviewed I will commit on Friday if there is no feedback.
More information about the core-libs-dev