Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-721

MBoxMailRepository.remove(String key) causes ClassCastException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0, 2.3.0
    • 2.3.1
    • None

    Description

      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.

      Attachments

        Activity

          People

            norman Norman Maurer
            joachimdraeger Joachim Draeger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: