[
https://issues.apache.org/jira/browse/MIME4J-217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ioan Eugen Stan resolved MIME4J-217.
------------------------------------
Resolution: Fixed
Fix Version/s: 0.8
Fixed with commit r1390619
> 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.5, 0.6, 0.6.1, 0.7, 0.7.1
> Reporter: Ioan Eugen Stan
> Assignee: Ioan Eugen Stan
> Fix For: 0.8
>
>
> 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