On 05/04/2013 19:08, mark.reinh...@oracle.com wrote:
Posted: http://openjdk.java.net/jeps/180
If you're using WeakHashMap with types that (may) override
equals/hashCode you have bigger problems. You almost certainly want
"identity" semantics (violating the java.util.Map contract) and quite
p
Opt-in via Comparable seems rather risky to me.
It's not just potential divergence between equals() and compareTo(),
which the Comparable specification explicitly allows. At the very
least, you'd have to add totally separate balanced trees for each class
of key objects.
--
Florian Weimer /
thanks, Mark!
On Apr 5, 2013, at 11:08 AM, mark.reinh...@oracle.com wrote:
> Posted: http://openjdk.java.net/jeps/180
>
> - Mark
Posted: http://openjdk.java.net/jeps/180
- Mark