I
Ian Pilcher
One of these "not gonna happen before the heat death of the Universe"
questions that drive me nuts.
Map.size() returns an int, so what should I throw if someone tries to
add more than Integer.MAX_VALUE entries to my map -- which could happen
on a 64-bit JVM?
IllegalStateException?
ArithmeticException?
Thoughts?
questions that drive me nuts.
Map.size() returns an int, so what should I throw if someone tries to
add more than Integer.MAX_VALUE entries to my map -- which could happen
on a 64-bit JVM?
IllegalStateException?
ArithmeticException?
Thoughts?