Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 28C6E200B81 for ; Fri, 5 Aug 2016 11:34:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 27888160A8E; Fri, 5 Aug 2016 09:34:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 70651160AB2 for ; Fri, 5 Aug 2016 11:34:22 +0200 (CEST) Received: (qmail 3400 invoked by uid 500); 5 Aug 2016 09:34:21 -0000 Mailing-List: contact notifications-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list notifications@groovy.apache.org Received: (qmail 2994 invoked by uid 99); 5 Aug 2016 09:34:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2016 09:34:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id AF7E42C0D60 for ; Fri, 5 Aug 2016 09:34:20 +0000 (UTC) Date: Fri, 5 Aug 2016 09:34:20 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: notifications@groovy.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GROOVY-6245) @EqualsAndHashCode assumes get style getters for boolean properties MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 05 Aug 2016 09:34:23 -0000 [ https://issues.apache.org/jira/browse/GROOVY-6245?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D154= 09221#comment-15409221 ]=20 ASF GitHub Bot commented on GROOVY-6245: ---------------------------------------- GitHub user paulk-asert opened a pull request: https://github.com/apache/groovy/pull/379 GROOVY-6245: @EqualsAndHashCode assumes get style getters for boolean= =E2=80=A6 =E2=80=A6 properties You can merge this pull request into a Git repository by running: $ git pull https://github.com/paulk-asert/groovy groovy6245 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/groovy/pull/379.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #379 =20 ---- commit 50ba3758e3fb435e6d7135455ef62251a0af22e6 Author: paulk Date: 2016-08-05T09:22:31Z GROOVY-6245: @EqualsAndHashCode assumes get style getters for boolean p= roperties ---- > @EqualsAndHashCode assumes get style getters for boolean properties > ------------------------------------------------------------------- > > Key: GROOVY-6245 > URL: https://issues.apache.org/jira/browse/GROOVY-6245 > Project: Groovy > Issue Type: Bug > Components: xforms > Affects Versions: 2.1.6, 2.2.0-beta-1, 2.4.5 > Reporter: Marcin Erdmann > > It basically means that equals() and hashCode() generated using @EqualsAs= HashCode will throw MissingMethodException if you define only is style gett= ers for a glass. I expected the following to pass but it doesn't: > {code} > import groovy.transform.EqualsAndHashCode=20 > @EqualsAndHashCode > class A { > boolean a > =20 > boolean isA() { a } > } > =20 > def a1 =3D new A(a: true) > def a2 =3D new A(a: true) > assert a1.a > assert a1.hashCode() > assert a1 =3D=3D a2 > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)