On 1/06/2012 11:36 PM, Doug Lea wrote:
On 06/01/12 05:29, Kasper Nielsen wrote:
I don't know if this has been discussed before. But I was looking at
the HashMap implementation today and noticed that there are some
issues with very large sized hashmaps with more then Integer.MAX_VALUE
elements.
On 01-06-2012 22:05, Eamonn McManus wrote:
But it is not just serializing a HashMap that does not work. HashMap.size()
and HashMap.clear() isn't working as well.
I don't see what's wrong with HashMap.clear(),
My mistake, was looking at the HashMap implementation for Harmony.
but HashMap.size(
> But it is not just serializing a HashMap that does not work. HashMap.size()
> and HashMap.clear() isn't working as well.
I don't see what's wrong with HashMap.clear(), but HashMap.size() is
clearly buggy and should be fixed. There's also a performance problem
in that accesses start becoming line
On 01-06-2012 21:12, Eamonn McManus wrote:
It seems to me that since the serialization of HashMaps with more than
Integer.MAX_VALUE entries produces an output that cannot be
deserialized, nobody can be using it, and we are free to change it.
For example we could say that if the read size is -1 th
It seems to me that since the serialization of HashMaps with more than
Integer.MAX_VALUE entries produces an output that cannot be
deserialized, nobody can be using it, and we are free to change it.
For example we could say that if the read size is -1 then the next
item in the stream is a long that
On 06/01/12 05:29, Kasper Nielsen wrote:
Hi,
I don't know if this has been discussed before. But I was looking at
the HashMap implementation today and noticed that there are some
issues with very large sized hashmaps with more then Integer.MAX_VALUE
elements.
I think this arose on this list (o
Hi,
I don't know if this has been discussed before. But I was looking at
the HashMap implementation today and noticed that there are some
issues with very large sized hashmaps with more then Integer.MAX_VALUE
elements.
1.
The Map contract says that "If the map contains more than
Integer.MAX_VALUE