United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-5030267 Use new static methods Long.highestOneBit/Long.bitCount in java.util.BitSet
JDK-5030267 : Use new static methods Long.highestOneBit/Long.bitCount in java.util.BitSet

Details
Type:
Enhancement
Submit Date:
2004-04-12
Status:
Resolved
Updated Date:
2005-02-19
Project Name:
JDK
Resolved Date:
2005-02-19
Component:
core-libs
OS:
generic
Sub-Component:
java.util
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:

Related Reports

Sub Tasks

Description
###@###.### 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
                                     
2005-01-21



Hardware and Software, Engineered to Work Together