[ http://issues.apache.org/jira/browse/JAMES-721?page=all ]
Joachim Draeger updated JAMES-721: ---------------------------------- Summary: MBoxMailRepository.remove(String key) causes ClassCastException (was: MBoxMailRepository.remove(String key) does not work) > MBoxMailRepository.remove(String key) causes ClassCastException > --------------------------------------------------------------- > > Key: JAMES-721 > URL: http://issues.apache.org/jira/browse/JAMES-721 > Project: James > Issue Type: Bug > Components: MailStore & MailRepository > Affects Versions: Trunk > Reporter: Joachim Draeger > 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: http://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]