[
https://issues.apache.org/jira/browse/GROOVY-7782?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King closed GROOVY-7782.
-----------------------------
Resolution: Not A Problem
Fix Version/s: (was: 2.4.5)
As per users comments, although not as easy to understand as it could be, this
is not a bug with Groovy.
> Different behavior of println and println()
> -------------------------------------------
>
> Key: GROOVY-7782
> URL: https://issues.apache.org/jira/browse/GROOVY-7782
> Project: Groovy
> Issue Type: Bug
> Components: groovy-runtime
> Environment: Linux/windows
> Reporter: Maoxiang Qian
> Priority: Minor
>
> groovy> outLine=["a", "b"].join("\t")
> groovy> println outLine
> groovy> println(["a", "b"].join("\t"))
> groovy> println ["a", "b"].join("\t")
> a b
> a b
> Exception thrown
> groovy.lang.MissingPropertyException: No such property: println for class:
> ConsoleScript2
> at ConsoleScript2.run(ConsoleScript2:5)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)