Erroneous description of the constructor ArrayList()

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 8, 11, 17, 20
    • Component/s: 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


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

              Created:
              Updated:
              Resolved: