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




Reply via email to