RFR: 8149330: Capacity of StringBuilder should not get close to Integer.MAX_VALUE unless necessary

Martin Buchholz martinrb at google.com
Tue Feb 23 06:38:40 UTC 2016


In your test you refer to "Utf8"  but there's no UTF-8 in use here.
You probably mean UTF-16?

You could port Vector/ArrayManagement that I wrote when fixing
ArrayList/Vector, but I see there are more existing tests for capacity
of StringB*er



More information about the core-libs-dev mailing list