Lukas Eder created SLING-2793:
---------------------------------

             Summary: MediaRangeList.MediaRange incorrectly implements 
equals(), hashCode(), compareTo()
                 Key: SLING-2793
                 URL: https://issues.apache.org/jira/browse/SLING-2793
             Project: Sling
          Issue Type: Bug
          Components: Servlets
    Affects Versions: Servlets Post 2.2.0
            Reporter: Lukas Eder
            Priority: Minor
         Attachments: MediaRangeListTest.java.patch

The type MediaRangeList.MediaRange doesn't adhere to the general contracts for 
equals(), hashCode(), and compareTo(). As MediaRange is inserted in Sets, this 
might lead to strange, unexpected effects.

See the attached patch, adding a Unit test for equals(), hashCode(), and 
compareTo() behaviour.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to