Clojure

TransactionalHashMap bug

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

TransactionalHashMap computation of the bin is buggy. The implementation doesn't unset the sign bit before using it in accessing the bin array which in some cases cause an ArrayOutOfBoundException to be thrown.

As Rich Hickey has pointed out, this is an unsupported experimental Class and won't be fixed unless I provided a patch, so attached is the patch file.

Activity

Hide
Assembla Importer added a comment -

stu said: Please add a test case.

Show
Assembla Importer added a comment - stu said: Please add a test case.
Hide
Assembla Importer added a comment -

megabyte2021 said: [file:cuuZnsuuWr36H0eJe5dVir]: The patch file

Show
Assembla Importer added a comment - megabyte2021 said: [file:cuuZnsuuWr36H0eJe5dVir]: The patch file

People

  • Assignee:
    Unassigned
    Reporter:
    Anonymous
Vote (0)
Watch (1)

Dates

  • Created:
    Updated: