You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Davide Giannella (JIRA)" <ji...@apache.org> on 2016/02/08 10:32:41 UTC
[jira] [Closed] (OAK-3939) SegmentMK Template equals and hashCode
broken
[ https://issues.apache.org/jira/browse/OAK-3939?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davide Giannella closed OAK-3939.
---------------------------------
> SegmentMK Template equals and hashCode broken
> ---------------------------------------------
>
> Key: OAK-3939
> URL: https://issues.apache.org/jira/browse/OAK-3939
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: segmentmk
> Reporter: Alex Parvulescu
> Assignee: Alex Parvulescu
> Labels: candidate_oak_1_0, candidate_oak_1_2
> Fix For: 1.3.15
>
> Attachments: templates.patch
>
>
> the hash code generation cannot differentiate between 'zeo child nodes' and 'many child nodes', producing the same value if all other properties are the same.
> equals: in one of the 2 constructors the 'properties' array is not sorted, producing a failing check if 2 templates are the same but have shuffled properties
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)