A DESCRIPTION OF THE PROBLEM :
Erroneous description of the constructor ArrayList().
This is an error - "Constructs an empty list with an initial capacity of ten.".
When using this constructor, the capacity is 0.
Please fix this.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/ArrayList.html
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
"Constructs an empty list with an initial capacity of zero.".
ACTUAL -
"Constructs an empty list with an initial capacity of ten.".
FREQUENCY : always
Erroneous description of the constructor ArrayList().
This is an error - "Constructs an empty list with an initial capacity of ten.".
When using this constructor, the capacity is 0.
Please fix this.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/ArrayList.html
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
"Constructs an empty list with an initial capacity of zero.".
ACTUAL -
"Constructs an empty list with an initial capacity of ten.".
FREQUENCY : always
- duplicates
-
JDK-8143020 no-arg ArrayList constructor specification has confusing wording about capacity
-
- Open
-