Details
Description
// following throw is legal syntax in java and in groovy
throw new IllegalArgumentException( " Left paren on same line compiles OK" )
// following throw is legal syntax in java but NOT in groovy
throw new IllegalArgumentException
( " Left paren on next line causes syntax error" )
// Above generates following syntax error:
unexpected token: <newline> @ line 71, column 44.
new IllegalArgumentException
^