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 5FF6C200B98 for ; Mon, 19 Sep 2016 04:57:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5EC3A160ADF; Mon, 19 Sep 2016 02:57: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 ADBC1160AC3 for ; Mon, 19 Sep 2016 04:57:22 +0200 (CEST) Received: (qmail 90046 invoked by uid 500); 19 Sep 2016 02:57: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 90000 invoked by uid 99); 19 Sep 2016 02:57:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Sep 2016 02:57:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id AB4EB2C0D5B for ; Mon, 19 Sep 2016 02:57:21 +0000 (UTC) Date: Mon, 19 Sep 2016 02:57:21 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: notifications@groovy.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GROOVY-6831) Access to static fields/properties from within inner classes is inconsistent MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 19 Sep 2016 02:57:23 -0000 [ https://issues.apache.org/jira/browse/GROOVY-6831?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D155= 02102#comment-15502102 ]=20 ASF GitHub Bot commented on GROOVY-6831: ---------------------------------------- GitHub user paulk-asert opened a pull request: https://github.com/apache/groovy/pull/425 GROOVY-6831: Access to static fields/properties from within inner cla= =E2=80=A6 =E2=80=A6sses is inconsistent You can merge this pull request into a Git repository by running: $ git pull https://github.com/paulk-asert/groovy groovy6831b Alternatively you can review and apply these changes as the patch at: https://github.com/apache/groovy/pull/425.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 #425 =20 ---- commit 6aa91bb2cb3d31a2e28a7a271f330b798047e0b9 Author: paulk Date: 2016-09-19T02:53:15Z GROOVY-6831: Access to static fields/properties from within inner class= es is inconsistent ---- > Access to static fields/properties from within inner classes is inconsist= ent > -------------------------------------------------------------------------= --- > > Key: GROOVY-6831 > URL: https://issues.apache.org/jira/browse/GROOVY-6831 > Project: Groovy > Issue Type: Bug > Reporter: Paul King > > Misbehaves in the same way regardless of @CompileStatic: > {code} > import java.util.logging.Logger > //@groovy.transform.CompileStatic > class Foo { > private static final transient Logger log =3D Logger.getLogger(Foo.clas= s.getName())=20 > void method() { > log.info('some info') > } > static class Bar { > void method() { > log.info('some inner info') > } > static class Baz { > void method() { > log.info('some inner inner info') > } > } > } > } > new Foo().method() // =3D> INFO: some info > new Foo.Bar().method() // =3D> INFO: some inner info > new Foo.Bar.Baz().method() // =3D> groovy.lang.MissingPropertyException: = No such property: log for class: Foo$Bar > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)