Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.0-JSR-6
-
Component/s: parser-antlr
-
Labels:None
-
Environment:Groovy Version: 1.0-RC-01-SNAPSHOT JVM: 1.5.0_06-b05
-
Number of attachments :
Description
class Something {
static void something()
throws IllegalArgumentException { }
}
>>unexpected token: <newline> @ line 2, column 24.
At the moment, 'throws' must be on the first line of the method declaration to avoid the error.
that one is really hard to reproduce, because the newline may not be copied correctly. You should attach a file