Closed Bug 86603 Opened 24 years ago Closed 7 years ago

BERBitString(BitSet value) {} intialisized not all parameters

Categories

(Directory Graveyard :: LDAP Java SDK, defect)

x86
Windows NT
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: Bernd.Kunze, Assigned: erhyuan)

References

Details

Attachments

(1 file)

In package netscape.ldap.ber.stream; public class BERBitString extends BERElement { ... public BERBitString(BitSet value) { m_value = value; } ... } I miss the initialisation of the parameter "m_value_num_bits". It should be like: public BERBitString(BitSet value) { m_value = value; m_value_num_bits = m_value.size(); }
Reassigned to Miodrag (Java LDAP SDK lead engineer).
Assignee: mcs → miodrag
*** Bug 86604 has been marked as a duplicate of this bug. ***
QA Contact: __UNKNOWN__
Attached patch Patch, v1Splinter Review
Created patch file.
Attachment #111292 - Flags: review?(miodrag)
Attachment #111292 - Flags: review?(miodrag) → review?(mcs)
Comment on attachment 111292 [details] [diff] [review] Patch, v1 Miodrag should be the one to review this....
Attachment #111292 - Flags: review?(mcs) → review?(miodrag)
Bernd.Kunze: You need someone else for reviewing this patch, miodrag isn't working on Mozilla anymore (former Netscape). The patch hasn't bitrottened so, so it can be reviewed.
Reassign LDAP JDK bugs owned by Miodrag (miodrag@formerly-netscape.com.tld) to E-Y (erhyuan@pacbell.net)
Assignee: miodrag → erhyuan
Comment on attachment 111292 [details] [diff] [review] Patch, v1 removing [very] old review request, please re-request from someone if applicable. If you need to contact me specifically please add |Callek| to CC
Attachment #111292 - Flags: review?(miodrag)
Attachment #111292 - Flags: review?(erhyuan)
The comments above that suggested not to use BitSet.size(). * This class is for the BitString object. Note that the BitSet class * has a bug: size() returns the size of the internal allocated memory * rather than the number of bits. Current work-around is to maintain * the number of bits ourselves in m_value_num_bits. * Change is required when BitSet is fixed.
Attachment #111292 - Flags: review?(erhyuan)
Not activity for at least 6 years, closing.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: