[ 
https://issues.apache.org/jira/browse/SLING-2793?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukas Eder updated SLING-2793:
------------------------------

    Attachment: MediaRangeListTest.java.patch
    
> 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