You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Norman Maurer (JIRA)" <se...@james.apache.org> on 2007/01/12 11:30:27 UTC
[jira] Updated: (JAMES-721) MBoxMailRepository.remove(String key)
causes ClassCastException
[ https://issues.apache.org/jira/browse/JAMES-721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Norman Maurer updated JAMES-721:
--------------------------------
Fix Version/s: (was: Next Major)
2.3.1-dev
Affects Version/s: (was: Trunk)
2.2.0
2.3.0a1
2.3.0a2
2.3.0a3
2.3.0b1
2.3.0b2
2.3.0b3
2.3.0rc1
2.3.0rc2
2.3.0rc3
2.3.0rc4
2.3.0rc5
2.3.0
> 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: 2.2.0, 2.3.0a1, 2.3.0a2, 2.3.0a3, 2.3.0b1, 2.3.0b2, 2.3.0b3, 2.3.0rc1, 2.3.0rc2, 2.3.0rc3, 2.3.0rc4, 2.3.0rc5, 2.3.0
> Reporter: Joachim Draeger
> Assigned To: Norman Maurer
> Fix For: 2.3.1-dev
>
>
> 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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org