Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EBCFA200C8C for ; Tue, 2 May 2017 04:09:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EA865160BC2; Tue, 2 May 2017 02:09:11 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 44595160BC4 for ; Tue, 2 May 2017 04:09:11 +0200 (CEST) Received: (qmail 7063 invoked by uid 500); 2 May 2017 02:09:10 -0000 Mailing-List: contact notifications-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 notifications@groovy.apache.org Received: (qmail 7043 invoked by uid 99); 2 May 2017 02:09:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 May 2017 02:09:10 +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 1F6CA190193 for ; Tue, 2 May 2017 02:09:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id CNXef6hpS6oc for ; Tue, 2 May 2017 02:09:09 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id C020E5FC4F for ; Tue, 2 May 2017 02:09:08 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D8D4EE06BF for ; Tue, 2 May 2017 02:09:07 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id E5D6421E03 for ; Tue, 2 May 2017 02:09:06 +0000 (UTC) Date: Tue, 2 May 2017 02:09:06 +0000 (UTC) From: "Paul King (JIRA)" To: notifications@groovy.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Reopened] (GROOVY-3791) Array initializer fails MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 02 May 2017 02:09:12 -0000 [ https://issues.apache.org/jira/browse/GROOVY-3791?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul King reopened GROOVY-3791: ------------------------------- > Array initializer fails > ----------------------- > > Key: GROOVY-3791 > URL: https://issues.apache.org/jira/browse/GROOVY-3791 > Project: Groovy > Issue Type: New Feature > Components: syntax > Affects Versions: 1.6.4 > Reporter: Steve Buroff > Assignee: Daniel Sun > Priority: Minor > Fix For: 3.0 > > Attachments: arrayInitializer.groovy, ArrayInitializer.java > > > Run the attached one line file and you get: > ================================================================ > C:\Temp>groovyc arrayInitializer.groovy > org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, > arrayInitializer.groovy: 3: No expression for the array constructor call at line > : 3 column: 29. File: arrayInitializer.groovy @ line 3, column 29. > String[] junk = new String[]{"xxx"}; > ^ > 1 error > ================================================================= > Of course the line is perfectly correct. Try the attached java file which is an exact > copy of the groovy file. It compiles fine. -- This message was sent by Atlassian JIRA (v6.3.15#6346)