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 "angela (JIRA)" <ji...@apache.org> on 2013/11/11 14:24:19 UTC

[jira] [Resolved] (OAK-739) Asymmetric equals() implementation in AccessControlManagerImpl's nested classes PrincipalACL / NodeACL

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

angela resolved OAK-739.
------------------------

    Resolution: Cannot Reproduce

seems that this has been addressed in the mean time

> Asymmetric equals() implementation in AccessControlManagerImpl's nested classes PrincipalACL / NodeACL
> ------------------------------------------------------------------------------------------------------
>
>                 Key: OAK-739
>                 URL: https://issues.apache.org/jira/browse/OAK-739
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 0.7
>            Reporter: Lukas Eder
>            Priority: Minor
>
> I was digging in the Oak code and I've stumbled upon an assymetric equals() implementation between the following two nested classes:
> - AccessControlManagerImpl.PrincipalACL
> - AccessControlManagerImpl.NodeACL
> Assume the following:
> {code}
>   PrincipalACL p = ...
>   NodeACL n = ...
>   assertTrue(n.equals(p));
>   assertFalse(p.equals(n));
> {code}
> Since PrincipalACL.equals() looks almost the same as NodeACL.equals() except for the instanceof check, I suggest removing the override, or delegating to super.equals() instead of returning false.



--
This message was sent by Atlassian JIRA
(v6.1#6144)