james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ioan Eugen Stan (JIRA)" <mime4j-...@james.apache.org>
Subject [jira] [Created] (MIME4J-217) DomainsList is not immutable as stated in docs
Date Thu, 20 Sep 2012 23:01:17 GMT
Ioan Eugen Stan created MIME4J-217:

             Summary: DomainsList is not immutable as stated in docs
                 Key: MIME4J-217
                 URL: https://issues.apache.org/jira/browse/MIME4J-217
             Project: JAMES Mime4j
          Issue Type: Bug
          Components: dom
    Affects Versions: 0.7.1, 0.7, 0.6.1, 0.6, 0.5
            Reporter: Ioan Eugen Stan
            Assignee: Ioan Eugen Stan

DomainList passes a java.util.List which can be modified from outside if you pass a reference
to it and keep the reference. 

Test: https://github.com/ieugen/james-mime4j/commit/a2f72d0cd2c7f6544e220ba31ca805e684f45d1a

We should always make a copy of the list inside the constructor.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message