JDK-6955523 : OutOfMemoryError instead IndexOutOfBoundsException was thrown in StringBuffer.append() method
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 7
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2010-05-25
  • Updated: 2012-03-22
  • Resolved: 2010-07-21
Related Reports
Duplicate :  
Description
The OutOfMemoryError instead IndexOutOfBoundsException was thrown in StringBuffer.append(char[] str, int offset, int len) method when the "offset" and "len" are out of range. 
Same for StringBuilder.append(), StringBuilder.ensureCapacity(), ArrayList.ensureCapacity() methods.
The failure is not reproducible in the JDK 7 b93.