Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8305240

Erroneous description of the constructor ArrayList()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 8, 11, 17, 20
    • core-libs
    • generic
    • generic

      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


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: