Community
Participate
Working Groups
See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4513622 thus it may be better to wrap calls to substring in a call to new String(), so that short strings do not hold the larger strings in memory.
JDK bug #4513622 has been fixed in JDK 7u6, as reported in the JDK bug report. No longer an issue.