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 A70C8180E5 for ; Fri, 21 Aug 2015 14:30:48 +0000 (UTC) Received: (qmail 36386 invoked by uid 500); 21 Aug 2015 14:30:48 -0000 Delivered-To: apmail-groovy-notifications-archive@groovy.apache.org Received: (qmail 36360 invoked by uid 500); 21 Aug 2015 14:30:48 -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 36351 invoked by uid 99); 21 Aug 2015 14:30:48 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Aug 2015 14:30:48 +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 0D8F5DFD4D for ; Fri, 21 Aug 2015 14:30:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.216 X-Spam-Level: X-Spam-Status: No, score=0.216 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.764] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id VVm0b2p7zuwI for ; Fri, 21 Aug 2015 14:30:47 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with SMTP id 7F32320FA9 for ; Fri, 21 Aug 2015 14:30:46 +0000 (UTC) Received: (qmail 36028 invoked by uid 99); 21 Aug 2015 14:30:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Aug 2015 14:30:45 +0000 Date: Fri, 21 Aug 2015 14:30:45 +0000 (UTC) From: "Keegan Witt (JIRA)" To: notifications@groovy.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (GROOVY-7509) Problem With Stub Generator And Static Import Aliases 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-7509?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Keegan Witt reassigned GROOVY-7509: ----------------------------------- Assignee: Keegan Witt (was: C=C3=A9dric Champeau) > Problem With Stub Generator And Static Import Aliases > ----------------------------------------------------- > > Key: GROOVY-7509 > URL: https://issues.apache.org/jira/browse/GROOVY-7509 > Project: Groovy > Issue Type: Bug > Components: Stub generator / Joint compiler > Affects Versions: 2.4.4 > Reporter: Jeff Scott Brown > Assignee: Keegan Witt > Priority: Blocker > Labels: regression > Fix For: 2.4.5 > > Attachments: staticimportalias.zip > > > The attached staticimportalias.zip contains the following: > {code:borderStyle=3Dsolid|title=3Dsrc/main/groovy/demo/helper/SomeHelper.= java} > package demo.helper; > public class SomeHelper { > public static final int ANSWER =3D 42; > } > {code} > {code:borderStyle=3Dsolid|title=3Dsrc/main/groovy/demo/SomeClass.groovy} > package demo > import static demo.helper.SomeHelper.ANSWER as MAGIC_NUMBER > class SomeClass { > static int getMagicNumber() { > MAGIC_NUMBER > } > } > {code} > {code:borderStyle=3Dsolid|title=3Dsrc/main/groovy/demo/SomeJavaClass.java= } > package demo; > public class SomeJavaClass { > SomeClass sc; > } > {code} > The code will not compile with Groovy 2.4.4: > {noformat} > $ ./gradlew clean cG > :clean > :compileJava UP-TO-DATE > :compileGroovy > /Users/jeff/staticimportalias/build/tmp/groovy-java-stubs/demo/SomeClass.= java:9: error: cannot find symbol > import static demo.helper.SomeHelper.MAGIC_NUMBER; > ^ > symbol: static MAGIC_NUMBER > location: class > 1 error > startup failed: > Compilation failed; see the compiler error output for details. > 1 error > :compileGroovy FAILED > FAILURE: Build failed with an exception. > * What went wrong: > Execution failed for task ':compileGroovy'. > > Compilation failed; see the compiler error output for details. > * Try: > Run with --stacktrace option to get the stack trace. Run with --info or -= -debug option to get more log output. > BUILD FAILED > Total time: 4.467 secs > {noformat} > If I edit the top level build.gradle to use Groovy 2.4.3, the code compil= es. -- This message was sent by Atlassian JIRA (v6.3.4#6332)