You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Lukas Eder (JIRA)" <ji...@apache.org> on 2013/03/18 17:30:16 UTC
[jira] [Created] (SLING-2793) MediaRangeList.MediaRange incorrectly
implements equals(), hashCode(), compareTo()
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