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 A96D317451 for ; Mon, 1 Jun 2015 07:43:24 +0000 (UTC) Received: (qmail 809 invoked by uid 500); 1 Jun 2015 07:43:24 -0000 Delivered-To: apmail-groovy-notifications-archive@groovy.apache.org Received: (qmail 782 invoked by uid 500); 1 Jun 2015 07:43:24 -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 773 invoked by uid 99); 1 Jun 2015 07:43:24 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jun 2015 07:43:24 +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 32BF7181A34 for ; Mon, 1 Jun 2015 07:43:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id rdLMmrhT_8xy for ; Mon, 1 Jun 2015 07:43:18 +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 9AA814547F for ; Mon, 1 Jun 2015 07:43:17 +0000 (UTC) Received: (qmail 687 invoked by uid 99); 1 Jun 2015 07:43:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jun 2015 07:43:17 +0000 Date: Mon, 1 Jun 2015 07:43:17 +0000 (UTC) From: =?utf-8?Q?C=C3=A9dric_Champeau_=28JIRA=29?= To: notifications@groovy.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GROOVY-7402) Compiler NPE Related To AST Transformations And Traits 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-7402?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D145= 67031#comment-14567031 ]=20 C=C3=A9dric Champeau commented on GROOVY-7402: ----------------------------------------- It's interesting to know it worked in a previous version of Groovy. I'm not= sure we can improve the error message in a short timeframe (because errors= thrown from AST xforms are hard to catch), but if it used to work, there's= certainly something we can do. > Compiler NPE Related To AST Transformations And Traits > ------------------------------------------------------ > > Key: GROOVY-7402 > URL: https://issues.apache.org/jira/browse/GROOVY-7402 > Project: Groovy > Issue Type: Bug > Components: Compiler > Affects Versions: 2.4.3 > Reporter: Jeff Scott Brown > Attachments: traitannotation.zip > > > Related to https://github.com/grails/grails-core/issues/663. > The attached traitannotation.zip includes the following: > {code:title=3Dsrc/main/groovy/demo/SomeTrait.groovy|borderStyle=3Dsolid} > package demo > import groovy.transform.* > @Immutable > trait SomeTrait { > String name > } > {code} > {code:title=3Dsrc/main/groovy/demo/SomeClass.groovy|borderStyle=3Dsolid} > package demo > class SomeClass implements SomeTrait {} > {code} > Compilation raises an NPE: > {noformat} > $ ./gradlew clean cG > :clean > :compileJava UP-TO-DATE > :compileGroovy FAILED > FAILURE: Build failed with an exception. > * What went wrong: > Execution failed for task ':compileGroovy'. > > BUG! exception in phase 'instruction selection' in source unit '/Users/= jeff/traitannotation/src/main/groovy/demo/SomeTrait.groovy' unexpected Null= pointerException > * Try: > Run with --stacktrace option to get the stack trace. Run with --info or -= -debug option to get more log output. > BUILD FAILED > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)