[
https://issues.apache.org/jira/browse/SLING-2793?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carsten Ziegeler resolved SLING-2793.
-------------------------------------
Resolution: Won't Fix
> 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 was sent by Atlassian Jira
(v8.20.10#820010)