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 E983F200CB5 for ; Wed, 12 Jul 2017 18:12:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E7FF3169400; Wed, 12 Jul 2017 16:12:06 +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 3B8481693FE for ; Wed, 12 Jul 2017 18:12:06 +0200 (CEST) Received: (qmail 24891 invoked by uid 500); 12 Jul 2017 16:12:05 -0000 Mailing-List: contact dev-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 dev@groovy.apache.org Received: (qmail 24880 invoked by uid 99); 12 Jul 2017 16:12:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jul 2017 16:12:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id ADEAA192386 for ; Wed, 12 Jul 2017 16:12:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.797 X-Spam-Level: X-Spam-Status: No, score=-2.797 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.796, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id cEdMxK_4cc3b for ; Wed, 12 Jul 2017 16:12:01 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 9EC20627B3 for ; Wed, 12 Jul 2017 16:11:53 +0000 (UTC) Received: from [192.168.1.121] ([195.141.68.118]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lmazv-1e4NwS3gCB-00aADy for ; Wed, 12 Jul 2017 18:11:51 +0200 Subject: Re: About declaring the field and property with same name To: dev@groovy.apache.org References: <1499474014684-5742010.post@n5.nabble.com> <1499874498283-5742072.post@n5.nabble.com> From: Jochen Theodorou Message-ID: <498dd031-079a-9f4c-4ef3-c7b203423275@gmx.org> Date: Wed, 12 Jul 2017 18:11:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <1499874498283-5742072.post@n5.nabble.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:A0bpjiaKUb+1Gcfqors6hQ8fQTaRMKAPBFM9PUoD6bNB9DPf2s8 C8aZ+W/7G8yTK2h+aR0AJTEYMJV6W91ChaKDJ3+tEKMTb0U+g1+P5DYl2nHFw5IgmKri02z aJspdiI/MbGYH87nQrJOfw8mCbJvpyneIc+CYBvsZFT8WbI7GrO/0vUQNGlJNKHofU4pcGH 389XqXtXyIInWfw0PIB+g== X-UI-Out-Filterresults: notjunk:1;V01:K0:lbKmpG8kSj4=:jPy2okNQlxWHZt61diHT/s R1lNf3EWQ2X638TdTW2t2P3KvSCRSBd+5sDygqFYvXynqsmxb2HEOUJ1VSA+2DF8WQcLtHLRA 6+ar+GMc5f5w7nMWgyNotJDQzOYsJJY2J2gKGyTLPCU/MZrY3ciBbzOJ4sEVoHwWMtviGGnbY 8L88rFFHlUOVfTHb600jIbYdxZF3/v7Oea82zjzBFH0T49I/+s9p7fBQ3Ywh90lsGKqLRN+Oy +pQZTlzBVMeNdxtDFSRGTQEhynDmaGG0uCzgSUBF9GZD640xUazTzjEDjOHf8OIgdVPjobZ7f 3YFbtOzKjeWW+Su0GXQsZGpeTZt2I4fIWiS0K68dcL75rSz3Rqrwrl3n3s3Uw4YlZeI4AFwnt rNWh0mgVEXh6FerDLr65hNm3btPdSa5VZ12k8Sk7uMsWs/Dm9Ivttz/aUcDFKR26ArwmvfgMr BJ8AqoOaWWt+kSqz+kr3j9ktzdSAMyVPdKNAL9NHDSNseKynQSrPN8g7vsJJl7eZDwsCSolVu gzgWpzdsxrGXYjXUZApcArPVmlyCXUQSJNKvMRpPzTGmnGNBhhAasWOv1b4y40cIGKvR4n+gS LVCegB48+4HCslIfUrBGkDtG06OcbWQ89FRhNJx1FOwVASzxykM8JHsMi3oi+csffDTSmU0Ax iadRvStG0aleqpZxalSZS98itux8aG5b8DNC9DzFDM7Qyb3rk6tft3Ws6zygFghatkVeCh8Hd NrN3KqCAaM1LbOqOPS0+U6g72rjOZ98mHrYEZYFDOj3/Cr7p39iIkpFUiuIxKpuU6cexnX9s3 RyeHvTX archived-at: Wed, 12 Jul 2017 16:12:07 -0000 On 12.07.2017 17:48, Daniel Sun wrote: > Hi all, > > If no one is opposed to deprecating the weird feature, I'll modify > the two tests at the weekend(shouldCompile -> shouldNotCompile): > > https://github.com/apache/groovy/blob/master/src/test/gls/scope/MultipleDefinitionOfSameVariableTest.groovy#L110 > > https://github.com/apache/groovy/blob/master/src/test/gls/scope/MultipleDefinitionOfSameVariableTest.groovy#L119 > sorry, but veto. class X { String foo private foo } declares for example a get/setFoo for String, while the backing field is Object. The field also allows you to use additional modifiers like volatile for example. bye Jochen