[
https://issues.apache.org/jira/browse/JAMES-721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Norman Maurer resolved JAMES-721.
---------------------------------
Resolution: Fixed
Assignee: Norman Maurer
Fixed in trunk
> MBoxMailRepository.remove(String key) causes ClassCastException
> ---------------------------------------------------------------
>
> Key: JAMES-721
> URL: https://issues.apache.org/jira/browse/JAMES-721
> Project: James
> Issue Type: Bug
> Components: MailStore & MailRepository
> Affects Versions: Trunk
> Reporter: Joachim Draeger
> Assigned To: Norman Maurer
> Fix For: Next Major
>
>
> It calls
> ArrayList keys = new ArrayList();
> keys.add(key);
> this.remove(keys);
> although remove(Collection) expects Mail objects
> 02/12/06 20:25:14 ERROR pop3server: Some deleted messages were not removed:
> java.lang.String
> java.lang.ClassCastException: java.lang.String
> at
> org.apache.james.mailrepository.MBoxMailRepository$3.messageAction(MBoxMailRepository.java:702)
> at
> org.apache.james.mailrepository.MBoxMailRepository.parseMboxFile(MBoxMailRepository.java:277)
> at
> org.apache.james.mailrepository.MBoxMailRepository.remove(MBoxMailRepository.java:691)
> at
> org.apache.james.mailrepository.MBoxMailRepository.remove(MBoxMailRepository.java:767)
> public void remove(Mail mail) {
> // Convert the message into a key
> Vector delVec = new Vector();
> delVec.addElement(mail);
> remove(delVec);
> }
> Works, but the comment is wrong.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]