Numerous problems in javamail SearchTerm impl. ----------------------------------------------
Key: GERONIMO-3594 URL: https://issues.apache.org/jira/browse/GERONIMO-3594 Project: Geronimo Issue Type: Bug Security Level: public (Regular issues) Components: mail Reporter: Rick McGuire Assignee: Rick McGuire There are a number of problems in the javamail SearchTerm classes. The fall into several general categories: 1) Some search terms rely on method calls in the Message class that can return a null result. This leads to null pointer exceptions when performing client-side match operations. 2) A number of classes don't override the equals() method and ensure that the other object is of the correct type. 3) Some equals method implementations don't include all data items in the compare, which can lead to false positives. 4) The hashCode methods don't always include all data items in the hash. In at least one case, an item is included that will create an invalid hash that will violate the hashCode()/equals() general contract. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.