bugs.java.com
Bug ID: JDK-6294060 Use of substring() causes memory leak
It's an error in java.lang.String source code which is the same for all JDK distributions.return this.longString.substring(begin, end); } public static void main(String[] args) {. List subStrings = new ArrayList(NUMBER_OF_BUFFERS)