Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-74

[lang] [patch] ArrayUtils.addAll doesn't always return new array

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1
    • None
    • None
    • Operating System: other
      Platform: Other

    • 27661

    Description

      Hi,

      according to the javadoc of the ArrayUtils.addAll() method, a new array is
      returned. However, if 1 of the 2 given arrays is null, the not-null array is
      returned (and not a new array).

      attached are a fix and a junit test

      Maarten

      Attachments

        Activity

          People

            Unassigned Unassigned
            maartenc Maarten Coene
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: