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 9A549200C35 for ; Thu, 2 Feb 2017 00:19:16 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 99091160B63; Wed, 1 Feb 2017 23:19:16 +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 D22FF160B6B for ; Thu, 2 Feb 2017 00:19:15 +0100 (CET) Received: (qmail 13179 invoked by uid 500); 1 Feb 2017 23:19:15 -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 13123 invoked by uid 99); 1 Feb 2017 23:19:15 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2017 23:19:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 9DDB7C10BB for ; Wed, 1 Feb 2017 23:19:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id DbQiNghqH1Xc for ; Wed, 1 Feb 2017 23:19:14 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 43FB25F177 for ; Wed, 1 Feb 2017 23:19:12 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 4A353E06A5 for ; Wed, 1 Feb 2017 23:19:07 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 0177225290 for ; Wed, 1 Feb 2017 23:19:07 +0000 (UTC) Date: Wed, 1 Feb 2017 23:19:07 +0000 (UTC) From: "Paul King (JIRA)" To: notifications@groovy.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (GROOVY-7942) @Lazy transform creates unneeded getter/setter for backing store field MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 01 Feb 2017 23:19:16 -0000 [ https://issues.apache.org/jira/browse/GROOVY-7942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul King closed GROOVY-7942. ----------------------------- > @Lazy transform creates unneeded getter/setter for backing store field > ---------------------------------------------------------------------- > > Key: GROOVY-7942 > URL: https://issues.apache.org/jira/browse/GROOVY-7942 > Project: Groovy > Issue Type: Improvement > Reporter: Paul King > Assignee: Paul King > Fix For: 2.4.8 > > > The following code: > {code} > @Lazy String foo > {code} > creates an appropriate {{getFoo}} getter method and a private {{$foo}} backing field but in renaming the fieldNode to have the dollar prefix, it doesn't remove the corresponding entry in the ClassNode's properties list. This results in some spurious {{get$Foo}} and {{set$Foo}} methods being created in later compilation phases. On the one hand these could be regarded as some backdoor semi-internal way to get access to the backing field but in reality using those methods would violate the contract that {{@Lazy}} is trying to provide.. -- This message was sent by Atlassian JIRA (v6.3.15#6346)