James Server
  1. James Server
  2. JAMES-721

MBoxMailRepository.remove(String key) causes ClassCastException

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0, 2.3.0
    • Fix Version/s: 2.3.1
    • Labels:
      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.

        Activity

        Hide
        Norman Maurer added a comment -

        Fixed in trunk

        Show
        Norman Maurer added a comment - Fixed in trunk
        Hide
        Danny Angus added a comment -

        Closing issue fixed in released version.

        Show
        Danny Angus added a comment - Closing issue fixed in released version.

          People

          • Assignee:
            Norman Maurer
            Reporter:
            Joachim Draeger
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development