Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3848

AdminPrincipal.equals violates general contract hashCode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • jackrabbit-core
    • None

    Description

      According to the general contract equal object must have equal hash codes. However the following code fails:

      AdminPrincipal p1 = new AdminPrincipal("p1");
      AdminPrincipal p2 = new AdminPrincipal("p2");
      
      assertTrue(!p1.equals(p2) || p1.hashCode() == p2.hashCode());
      

      Original report: http://markmail.org/message/5eorcvf75gywh66t

      Attachments

        Activity

          People

            Unassigned Unassigned
            mduerig Michael Dürig
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: