[commit-cp] classpath java/util/HashMap.java ChangeLog
CVSROOT:/sources/classpath Module name:classpath Changes by: Pekka Enberg 11/02/22 16:09:42 Modified files: java/util : HashMap.java . : ChangeLog Log message: Bump up HashMap default initial capacity While debugging Jython bootstrap issues with GNU Classpath, I noticed that HashMap.DEFAULT_CAPACITY is set to 11 although Java 1.4 has it as 16. 2011-02-22 Pekka Enberg * java/util/HashMap: (DEFAULT_CAPACITY): Make default initial capacity 16 as it is defined in official Javadocs. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/java/util/HashMap.java?cvsroot=classpath&r1=1.35&r2=1.36 http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9816&r2=1.9817
[commit-cp] classpath java/util/HashMap.java ChangeLog
CVSROOT:/sources/classpath Module name:classpath Changes by: Pekka Enberg 11/02/22 16:10:18 Modified files: java/util : HashMap.java . : ChangeLog Log message: Fix HashMap.put() to check for hashCode equality before equals() This patch is needed to run Jython 2.5.2 RC 4 under JamVM and GNU Classpath CVS HEAD. It turns out Jythin bootstrap is bit hairy and assumes HashMap.put() checks for hashCode equality before invoking Object.equals(). 2011-02-22 Pekka Enberg * java/util/HashMap: (put): Check for key hashCode equality before invoking Object.equals() to fix compatibility issue with Jython. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/java/util/HashMap.java?cvsroot=classpath&r1=1.36&r2=1.37 http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9817&r2=1.9818