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 790E7200C3A for ; Fri, 31 Mar 2017 10:13:41 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7786D160B8C; Fri, 31 Mar 2017 08:13:41 +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 BA9DE160B80 for ; Fri, 31 Mar 2017 10:13:40 +0200 (CEST) Received: (qmail 20714 invoked by uid 500); 31 Mar 2017 08:13:39 -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 20704 invoked by uid 99); 31 Mar 2017 08:13:39 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Mar 2017 08:13:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 10070C0750 for ; Fri, 31 Mar 2017 08:13:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.497 X-Spam-Level: X-Spam-Status: No, score=-3.497 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-2.796, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id OO1Cnk1EFGSn for ; Fri, 31 Mar 2017 08:13:37 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id E89015F470 for ; Fri, 31 Mar 2017 08:13:36 +0000 (UTC) Received: from [192.168.1.5] ([77.177.185.11]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LjN0F-1cHDHS3cw3-00dTHJ for ; Fri, 31 Mar 2017 10:13:29 +0200 Subject: Re: Trying to determine if a change in 2.4.8 was deliberate... To: dev@groovy.apache.org References: From: Jochen Theodorou Message-ID: <58DE0FA7.5090206@gmx.org> Date: Fri, 31 Mar 2017 10:13:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:DHhxrvtDKLdIG4bQbKHg4t2BOhTXgB15d4QWaFLoS3HAvFiYg6G aKZjNsdzw0BXvQLVNhfBO2fBfp/5O5NU37PEnhxIxCXSUS2r83PSEbN6JYYbN1/Arx5GSJX yyn5TuGkxGBucr8MNNeRWTrfK5Vyu1Z4UWVzYXgQFIUDUn3fSA00088P59e0S/c0RNp3u1B JQTXDkrY+MvDDw4B3BOpA== X-UI-Out-Filterresults: notjunk:1;V01:K0:OczuD1lv390=:4cKagxCxBP5rUbndb7EmqT QHhF8ruXIzJjfGpCZ6XTMS1gDArSUQ8Rdbu0psXE/6pDcS+WTmaPfezcVNa5BsGpeqcWfhPU7 INKKPXLMgNz5GVEpbNgb2Rq6i7lvwFv8ZEAAM4nZZPYnBbDEik9EnwSxMHweObSOPdijllU7Q IWkDvg6R/8Bwt9fcjQ2KRVvD+C12OJ8+LbrRmn8UssvXBoBrKwnt+dQ3z6ezLWPjv8YU1mIjO pPXlMplKjTOFE0HQQVxVmZhotpB8AG/velckrOgW/n/kgTrao7b1OWDfGOJ9fqVr4Vk4GIdMd GZeuFG+kMHlEf8EQmMnXgjvrEGp4vV8JoBwAe4KjLhVWwxwkGc00S4lJv2ID54BMhVNf5gKUh 2+v2S87sBajI4zSqB6+4zwz9EcpWVY2ClP1Z8Cmr+nkQohOOIm9ANB5PL8einQDfbsgIYCNSE 4EFky4QY4dpdzumbXvrS8O9NV5k9mhth3dq64LZJgN5eKQUarlUr7hqQOHBGi1CF9IiNxQVe4 kwcHOIrGftX1trCpTaNlqtx50wBK89MIiNkDENCAtlcr1pIDlwxFM0kj3WjH0zYkk66nuukmC 8OhZKoTGrvNpG/BC5mJxLXRp7ScTfz2PSDDq55FOulIu7J+yjlsL38F/vrA9fbG/aFf3EahPh fqMaCeS3kqdlBFSc19Z+MY1128G09d4qfZerOhxpXZBK3gyW78Yu70HXKvzsdFgiue4XVNLA1 zsi910YMhMlzymzk5SilKKnAZcmNnWk2zT8ZD7izdFnnPDQ98DuBnykKr61xnaVPXumkwHpyb l9Uf6XT archived-at: Fri, 31 Mar 2017 08:13:41 -0000 On 30.03.2017 19:16, Andrew Bayer wrote: > I'm working on getting Jenkins' groovy-cps transforming magic working > with 2.5.0-alpha-1-SNAPSHOT and hit a few problems. I worked around one > of them easily enough (GlobalClassSet switched to a new collection class > for its items field), but the other is hairier. The change in question > is > https://github.com/apache/groovy/commit/0a6789d06cc6451fcfee174ba638c0494f2827ef, > which went into 2.4.8. What I'm seeing is that > https://github.com/cloudbees/groovy-cps/blob/master/src/main/java/com/cloudbees/groovy/cps/sandbox/DefaultInvoker.java#L32 > is invoking the super's method through the inheritor. As far as I can > tell - we end up with a CpsCallableInvocation being thrown, meaning our > transformed code in the inheritor was invoked here. In our CPS contexts, > that CpsCallableInvocation is the right result, but not here. > > Note that this isn't relevant in any other Groovy use case that I'm > aware of - it's particular to this usage. Or rather, this is the only > case I can find where the end result is different. I eventually found > the specific internal behavior that changed, getting us a different > method to invoke - > https://github.com/cloudbees/groovy-cps/pull/24#issuecomment-290250394 > has a test case that passes in 2.4.7 and earlier but fails in 2.4.8 and > later. The example can be fixed by using A instead of B. But that looks wrong to me. I think we have to restore the old behaviour. > I do have what *seems* to be a workaround at > https://github.com/abayer/groovy-cps/commit/340ca45ab95af63302bfa7648a9c79aa3f874fa4#diff-31c385af329657115ee24713b9ba928c > but that feels dirty to me. Is there a better way to do this? Was this > an intended result of the change, an unintentional but desirable side > effect, or a bug? Any thoughts would be much appreciated. =) I think this was not really intended, no. Maybe the fix means a piece of code outlifed itself and we did not notice, reactivating it is not right. For me this is a critical bug bye Jochen