Bug ID: JDK-6294060 Use of substring() causes memory leak
I have created a more simple example class which demonstrates this behaviour very clearly. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : See bug ID 4637640.Create String from char array, release dummy char array. String longString = new String(bigCharArray)