JEP 180: Handle Frequent HashMap Collisions with Balanced Trees

Florian Weimer fweimer at
Fri Apr 5 20:15:20 UTC 2013

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 / Red Hat Product Security Team

More information about the core-libs-dev mailing list