Other |
---|
tbdUnresolved |
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
The specs for various constructors of StringBuffer/StringBuilder contain text like "The initial capacity of the string buffer is 16 plus the length of the string argument." From a specification perspective, this leaves open the possibility of misbehavior near Integer.MAX_VALUE. The spec in question would be improved by covering this situation explicitly, say by having the capacity saturate at MAX_VALUE.