Return-Path: X-Original-To: apmail-groovy-notifications-archive@minotaur.apache.org Delivered-To: apmail-groovy-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9254317917 for ; Wed, 3 Jun 2015 11:01:55 +0000 (UTC) Received: (qmail 60777 invoked by uid 500); 3 Jun 2015 11:01:55 -0000 Delivered-To: apmail-groovy-notifications-archive@groovy.apache.org Received: (qmail 60754 invoked by uid 500); 3 Jun 2015 11:01:55 -0000 Mailing-List: contact notifications-help@groovy.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.incubator.apache.org Delivered-To: mailing list notifications@groovy.incubator.apache.org Received: (qmail 60745 invoked by uid 99); 3 Jun 2015 11:01:55 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jun 2015 11:01:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id DF91B1A4367 for ; Wed, 3 Jun 2015 11:01:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.771 X-Spam-Level: * X-Spam-Status: No, score=1.771 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ImBAR8Rr65PY for ; Wed, 3 Jun 2015 11:01:50 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id 1DB32428FF for ; Wed, 3 Jun 2015 11:01:50 +0000 (UTC) Received: (qmail 60080 invoked by uid 99); 3 Jun 2015 11:01:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jun 2015 11:01:49 +0000 Date: Wed, 3 Jun 2015 11:01:49 +0000 (UTC) From: "Peter Gromov (JIRA)" To: notifications@groovy.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (GROOVY-7452) Cannot reference inner classes of super classes by short name MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/GROOVY-7452?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Peter Gromov updated GROOVY-7452: --------------------------------- Description:=20 e.g. paste this in Groovy web console: {code} =E2=80=8Bimport java.nio.channels.* abstract class Foo extends FileChannel { MapMode foo() { null } } print "hi"=E2=80=8B=E2=80=8B=E2=80=8B {code} startup failed: Script1.groovy: 5: unable to resolve class MapMode=20 @ line 5, column 3. MapMode foo() { null } ^ 1 error If one qualifies the name: FileChannel.MapMode, the compilation succeeds >From https://youtrack.jetbrains.com/issue/IDEA-140769 was: e.g. paste this in Groovy web console: {code} =E2=80=8Bimport java.nio.channels.* abstract class Foo extends FileChannel { MapMode foo() { null } } print "hi"=E2=80=8B=E2=80=8B=E2=80=8B {code} startup failed: Script1.groovy: 5: unable to resolve class MapMode=20 @ line 5, column 3. MapMode foo() { null } ^ 1 error If one qualifies the name: FileChannel.MapMode, the compilation succeeds > Cannot reference inner classes of super classes by short name > ------------------------------------------------------------- > > Key: GROOVY-7452 > URL: https://issues.apache.org/jira/browse/GROOVY-7452 > Project: Groovy > Issue Type: Bug > Components: Compiler > Reporter: Peter Gromov > > e.g. paste this in Groovy web console: > {code} > =E2=80=8Bimport java.nio.channels.* > abstract class Foo extends FileChannel { > MapMode foo() { null } > } > print "hi"=E2=80=8B=E2=80=8B=E2=80=8B > {code} > startup failed: > Script1.groovy: 5: unable to resolve class MapMode=20 > @ line 5, column 3. > MapMode foo() { null } > ^ > 1 error > If one qualifies the name: FileChannel.MapMode, the compilation succeeds > From https://youtrack.jetbrains.com/issue/IDEA-140769 -- This message was sent by Atlassian JIRA (v6.3.4#6332)