hg: jdk7/tl/jdk: 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.
mike.duigou at oracle.com
mike.duigou at oracle.com
Thu Mar 17 21:43:31 UTC 2011
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
More information about the security-dev
mailing list