Norman Maurer ha scritto: > I whould like to change this in the next release of mailet api. But > before that we should tag and release the current mailet stuff because > the change is not backward compatible. > > This is the way i whould fix it: > > Add the method: > > void addRecipient(MailAddress rec) > > And change the getRecipients() methods to use > Collections.unmodifiableCollection(recipientCol); > > WDYT ?
The return of Collections.unmodifiableCollection from MailImpl is a JAMES Server issue and not a Mailet API issue. On the other side on Mailet's getRecipients() should be noted (javadoc) that it returns an unmodifiable collection. Stefano
