Details
-
New Feature
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.6.4
-
None
Description
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[]
;
^
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.
Attachments
Attachments
Issue Links
- relates to
-
GROOVY-1588 Better error messages when using Java's array init syntax
- Closed