From dev-return-4871-archive-asf-public=cust-asf.ponee.io@groovy.apache.org Wed May 23 08:42:19 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 699BC180645 for ; Wed, 23 May 2018 08:42:19 +0200 (CEST) Received: (qmail 41866 invoked by uid 500); 23 May 2018 06:42:13 -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 41852 invoked by uid 99); 23 May 2018 06:42:13 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 May 2018 06:42:13 +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 04543CDE15 for ; Wed, 23 May 2018 06:42:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.784 X-Spam-Level: ** X-Spam-Status: No, score=2.784 tagged_above=-999 required=6.31 tests=[KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id HzbMeCiMJaXL for ; Wed, 23 May 2018 06:42:12 +0000 (UTC) Received: from n5.nabble.com (n5.nabble.com [162.253.133.81]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 1B1905F23C for ; Wed, 23 May 2018 06:42:12 +0000 (UTC) Received: from n5.nabble.com (localhost [127.0.0.1]) by n5.nabble.com (Postfix) with ESMTP id BBAE865C84F2 for ; Tue, 22 May 2018 23:42:11 -0700 (MST) Date: Tue, 22 May 2018 23:42:11 -0700 (MST) From: "Daniel.Sun" To: dev@groovy.incubator.apache.org Message-ID: <1527057731730-0.post@n5.nabble.com> In-Reply-To: <1527057292055-0.post@n5.nabble.com> References: <1527057292055-0.post@n5.nabble.com> Subject: Re: Possible bug in AstBuilder Antlr4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit As the error message shows, error occurred when parsing statements within a block, but one of the statements is actually a `import` statement. We should add some check to give friendly error message IMO. Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html