ArrayList.add and addAll won't let you add to the end of the ArrayList

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 1.2.0
    • Affects Version/s: 1.2.0
    • Component/s: core-libs
    • None
    • 1.2beta4
    • generic, x86
    • generic, windows_95
    • Not verified

      ArrayList a = ...;

      a.add(a.size(), newElement);

      should work, but throws an IndexOutOfBoundsException.

            Assignee:
            Josh Bloch (Inactive)
            Reporter:
            Josh Bloch (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: