MohamedC / airhead-research

Automatically exported from code.google.com/p/airhead-research
0 stars 0 forks source link

HashBiMap Entry iterator does not update values in reverse mapping #71

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. HashBiMap.entrySet().iterator()
2. entry.setValue()

What is the expected output? What do you see instead?

The value is changed in the map whose iterator is returned, but not in the 
reverse mapping.

Please use labels and text to provide additional information.

This is a low priority issue since I don't think we're using the code like this 
anywhere in our code base, but it should probably get fixed at some point.  The 
solution is likely to implement a new EntrySet inner class that returns its own 
custom Map.Entry implementations that update both maps.

Original issue reported on code.google.com by David.Ju...@gmail.com on 7 Oct 2010 at 12:36

GoogleCodeExporter commented 8 years ago
Hi,
 I have a fix for your bug. I used the sspace-1.7-snapshot version. Please find attached the source code of the class and a corrisponding test class.
Bests,
Marco

Original comment by nemesix2...@gmail.com on 3 May 2011 at 10:09

Attachments:

GoogleCodeExporter commented 8 years ago
This has been fixed with the github wordsi branch

Original comment by FozzietheBeat@gmail.com on 20 Sep 2011 at 5:40