hg: jdk7/tl/jdk: 6992121: StringBuilder.ensureCapacity(int minCap) throws OutOfMemoryError with minCap=Integer.MIN_VALUE

mandy.chung at oracle.com mandy.chung at oracle.com
Tue Oct 19 10:02:57 PDT 2010


Changeset: c6320457db65
Author:    mchung
Date:      2010-10-19 10:02 -0700
URL:       http://hg.openjdk.java.net/jdk7/tl/jdk/rev/c6320457db65

6992121: StringBuilder.ensureCapacity(int minCap) throws OutOfMemoryError with minCap=Integer.MIN_VALUE
Reviewed-by: dholmes, alanb

! src/share/classes/java/lang/AbstractStringBuilder.java
! src/share/classes/java/util/ArrayList.java
! src/share/classes/java/util/Vector.java
+ test/java/lang/StringBuilder/EnsureCapacity.java
+ test/java/util/ArrayList/EnsureCapacity.java




More information about the security-dev mailing list