Issue Details (XML | Word | Printable)

Key: JAMES-721
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Norman Maurer
Reporter: Joachim Draeger
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JAMES Server

MBoxMailRepository.remove(String key) causes ClassCastException

Created: 02/Dec/06 07:33 PM   Updated: 21/Nov/07 08:31 AM
Return to search
Component/s: MailStore & MailRepository
Affects Version/s: 2.2.0, 2.3.0
Fix Version/s: 2.3.1

Time Tracking:
Not Specified

Resolution Date: 04/Jan/07 12:49 PM


 Description  « Hide
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.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Norman Maurer added a comment - 04/Jan/07 12:49 PM
Fixed in trunk

Danny Angus added a comment - 21/Nov/07 08:31 AM
Closing issue fixed in released version.