[
https://issues.apache.org/jira/browse/OAK-1049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jukka Zitting resolved OAK-1049.
--------------------------------
Resolution: Fixed
Fix Version/s: 0.10
I dropped the Comparable interface from Blob in revision 1526699.
> Blobs shouldn't be Comparable
> -----------------------------
>
> Key: OAK-1049
> URL: https://issues.apache.org/jira/browse/OAK-1049
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: core
> Reporter: Jukka Zitting
> Assignee: Jukka Zitting
> Fix For: 0.10
>
>
> In OAK-350 Blobs were made Comparable to make them easier to compare in
> higher-level code.
> Unfortunately the implementation is broken ({{compareTo}} is not transitive)
> and potentially very slow for large binaries, which suggests that it
> shouldn't be exposed at least on the public API level.
> Thus I suggest to drop the Comparable feature from Blobs and replace the few
> places where it is needed with {{equals()}} checks or explicit scanning of
> the streams.
--
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