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 B389717D6D for ; Mon, 1 Jun 2015 12:45:28 +0000 (UTC) Received: (qmail 71770 invoked by uid 500); 1 Jun 2015 12:45:28 -0000 Delivered-To: apmail-groovy-notifications-archive@groovy.apache.org Received: (qmail 71744 invoked by uid 500); 1 Jun 2015 12:45:28 -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 71735 invoked by uid 99); 1 Jun 2015 12:45:28 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jun 2015 12:45:28 +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 38FDFCA624 for ; Mon, 1 Jun 2015 12:45:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.791 X-Spam-Level: * X-Spam-Status: No, score=1.791 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, 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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Tu99FD2Jo-53 for ; Mon, 1 Jun 2015 12:45: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 C863547BFE for ; Mon, 1 Jun 2015 12:45:17 +0000 (UTC) Received: (qmail 68896 invoked by uid 99); 1 Jun 2015 12:45: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 12:45:17 +0000 Date: Mon, 1 Jun 2015 12:45:17 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: notifications@groovy.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GROOVY-6212) SpreadExpression BUG! when slicing a List MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/GROOVY-6212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14567260#comment-14567260 ] ASF GitHub Bot commented on GROOVY-6212: ---------------------------------------- Github user asfgit closed the pull request at: https://github.com/apache/incubator-groovy/pull/30 > SpreadExpression BUG! when slicing a List > ----------------------------------------- > > Key: GROOVY-6212 > URL: https://issues.apache.org/jira/browse/GROOVY-6212 > Project: Groovy > Issue Type: Bug > Components: Compiler > Affects Versions: 2.1.5, 2.4.0-rc-1 > Reporter: Alexey Rusakovich > Assignee: Paul King > Fix For: 2.5.0-beta-1 > > > Evaluating > {code} > (1..3)[*0..2] > {code} > throws: {{BUG! exception in phase 'class generation' in source unit 'ConsoleScript42' SpreadExpression should not be visited here}} > It works fine if I manually call {{getAt}}: > {code} > (1..3).getAt([*0..2]) // [1, 2, 3] > {code} > It also works if I add something besides the spread: > {code} > (1..3)[*0..2, 2] // [1, 2, 3, 3] > {code} > as shown in the Ranges and List-Slicing section of [Getting Started Guide > Collections|http://groovy.codehaus.org/JN1015-Collections]. > There are other SpreadExpression BUG!s, but I'm not sure if this bug is the same: > http://jira.codehaus.org/issues/?jql=text%20%7E%20%22SpreadExpression%22 -- This message was sent by Atlassian JIRA (v6.3.4#6332)