groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul King (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (GROOVY-3791) Array initializer fails
Date Tue, 02 May 2017 02:09:06 GMT

     [ 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)

Mime
View raw message