JDK-5030267 : Use new static methods Long.highestOneBit/Long.bitCount in java.util.BitSet
Type:Enhancement
Component:core-libs
Sub-Component:java.util
Affected Version:5.0
Priority:P4
Status:Resolved
Resolution:Fixed
OS:generic
CPU:generic
Submitted:2004-04-12
Updated:2005-02-19
Resolved:2005-02-19
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
###@###.### 2004-04-12
It seems like java.util.BitSet could be modified to call the new
jdk1.5 static methods Long.highestOneBit and Long.bitCount, instead
of its own methods to do these things.
Comments
EVALUATION
Sounds reasonable. The possibility should be investigated for 1.5.1.
###@###.### 2004-04-12
I note that both BitSet and Long have "difficult" implementations of
bitcount, and it is not obvious which is better. We should choose one
of them.
###@###.### 2005-1-21 01:35:00 GMT
We are choosing the methods from Long. The new BitSet
implementation will be simpler, smaller and faster.
###@###.### 2005-2-09 20:09:17 GMT