Changeset: bf37edb38fbb
Author:    mduigou
Date:      2011-03-17 14:42 -0700
URL:       http://hg.openjdk.java.net/jdk7/tl/jdk/rev/bf37edb38fbb

5045147: Prevent insertion of null Key into empty TreeMap (and null element 
into TreeSet) when no Comparator is used. Prevent insertion of key of incorrect 
type into empty TreeMap and incorrect type element into TreeSet and incorrect 
type when Comparator is used.
Reviewed-by: alanb, dl, mduigou

! src/share/classes/java/util/TreeMap.java
+ test/java/util/TreeMap/cr5045147.java

Reply via email to