Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-379

MailImpl.duplicate() should also clone attributes and not only the container HashMap

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.0
    • 2.3.0
    • James Core
    • None

    Description

      Probably currently we are using only String attributes and Strings are immutable so we never hit the bug. I recently added a complex object to the attributes and I noticed this.

      Attachments

        1. MailImpl.java.duplicatefix.diff
          2 kB
          Stefano Bagnara
        2. MailImplTest.java
          0.9 kB
          Stefano Bagnara

        Activity

          People

            noel Noel J. Bergman
            bago Stefano Bagnara
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: