yangxu998 / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

MapMaker size is negative and isEmpty is false with empty weakKeys/weakValues map #591

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
"I am getting a negative size() and isEmpty() of false on a Map with weakKeys() 
and weakValues() using guava r09-rc2. The map is indeed empty and iterating 
over the keySet() shows no entries, but the size(), keySet().size(), and 
entrySet().size() all return the same negative value."

[Originally reported in a comment on issue 552.]

Original issue reported on code.google.com by fry@google.com on 5 Apr 2011 at 4:02

GoogleCodeExporter commented 9 years ago
I believe this to be fixed in the trunk code. Please let me know if you still 
see it occur.

Original comment by fry@google.com on 2 Jun 2011 at 5:23

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:15

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:09