Re: Asking about the interesting behaviours of TreeMap.putAll

2012-03-04 Thread David Holmes
Hi Charles, I'm not quite sure what you are suggesting. In my opinion all that is needed is for AbstractMap.putAll to read: Copies all of the mappings from the specified map to this map (optional operation). The behavior of this operation is undefined if the specified map is modified while t

Re: Asking about the interesting behaviours of TreeMap.putAll

2012-03-04 Thread Charles Lee
Hi David, I also notice that in the AbstractMap doc, it also says: "The documentation for each non-abstract method in this class describes its implementation in detail. Each of these methods may be overridden if the map being implemented admits a more efficient implementation. " If this is th