Closed
Bug 855565
Opened 11 years ago
Closed 11 years ago
HashTable bug in the overwrite update
Categories
(Invalid Bugs :: General, defect, P5)
Invalid Bugs
General
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: n.paryab, Unassigned)
Details
Attachments
(2 files)
1.05 KB,
patch
|
Details | Diff | Splinter Review | |
5.42 KB,
text/plain
|
Details |
The program HashTable.java is an implementation of hash table using linear open addressing and division in Java. This program has a bug, because the put function will NOT update the element associated with the given key if an entry with the same key is put. However, this hash table implementation should update the element even if the element’s key already exists in the hash table. The test case for this bug is to call put fucntion with a duplicated key that is required to be written on the old value. Steps to reproduce: - Call put function with an existed key value and new element - Instead of rewiting the old value with the new one, it only store the old value into a temporary variable and returns old value. --------------------- Firefox x.x xxx operating system x86_64 hardware
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Comment 2•11 years ago
|
||
This is a live bug database, and test bugs cause people to receive email they don't care about. Please use https://landfill.bugzilla.org/ to test out Bugzilla.
Comment 3•10 years ago
|
||
filter: yahooyahooyahoo
Component: Developer Tools: Debugger → General
Product: Firefox → Invalid Bugs
You need to log in
before you can comment on or make changes to this bug.
Description
•