Review Request CR#7118743 : Alternative Hashing for String with Hash-based Maps (original) (raw)

Ulf Zibis Ulf.Zibis at gmx.de
Sat May 26 19:05:59 UTC 2012


Am 26.05.2012 21:00, schrieb Ulf Zibis:

But I still think, we should implement a more general approach according my last post. It seems to be overkill to me and of very limited value. New Map implementations could be created by third parties if this is useful to some users. The big problem for all later implementations would be, that they can't profit from an internal cache field in String, if it is not publicly accessible, as class String can't be subclassed, same for Java arrays. Additionally, if HashMap.hash() can't be overridden, one should duplicate the whole code of HashMap for an alternative implementation. Additionally we would get rid from the instanceof problem by my approach.

-Ulf



More information about the core-libs-dev mailing list