Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C4D0C17BD0 for ; Thu, 29 Jan 2015 13:25:35 +0000 (UTC) Received: (qmail 50612 invoked by uid 500); 29 Jan 2015 13:25:36 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 50490 invoked by uid 500); 29 Jan 2015 13:25:36 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 50210 invoked by uid 99); 29 Jan 2015 13:25:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jan 2015 13:25:36 +0000 Date: Thu, 29 Jan 2015 13:25:36 +0000 (UTC) From: =?utf-8?Q?Michael_D=C3=BCrig_=28JIRA=29?= To: dev@jackrabbit.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (JCR-3848) AdminPrincipal.equals violates general contract hashCode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Michael D=C3=BCrig created JCR-3848: ---------------------------------- Summary: AdminPrincipal.equals violates general contract hashC= ode Key: JCR-3848 URL: https://issues.apache.org/jira/browse/JCR-3848 Project: Jackrabbit Content Repository Issue Type: Bug Components: jackrabbit-core Reporter: Michael D=C3=BCrig According to the general contract equal object must have equal hash codes. = However the following code fails: {code} AdminPrincipal p1 =3D new AdminPrincipal("p1"); AdminPrincipal p2 =3D new AdminPrincipal("p2"); assertTrue(!p1.equals(p2) || p1.hashCode() =3D=3D p2.hashCode()); {code} Original report: http://markmail.org/message/5eorcvf75gywh66t -- This message was sent by Atlassian JIRA (v6.3.4#6332)