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

ArrayList(c) should avoid inflation if c is empty

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u20, 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Subcomponent:
    • Introduced In Version:
      8
    • Resolved In Build:
      b12
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        The ArrayList copy constructor does not currently do lazy initialization in the case where the provided collection is empty.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                mduigou Mike Duigou
                Reporter:
                mduigou Mike Duigou
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: