groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Melnikov (JIRA)" <>
Subject [jira] [Created] (GROOVY-9014) printf does not respect "out" property
Date Fri, 01 Mar 2019 11:04:00 GMT
Pavel Melnikov created GROOVY-9014:

             Summary: printf does not respect "out" property
                 Key: GROOVY-9014
             Project: Groovy
          Issue Type: Bug
          Components: groovy-runtime
         Environment: Ubuntu 18.04.1,
            Reporter: Pavel Melnikov

I am using groovy to run dynamic scripts from my Java application. I use JSR223 for this.
I am overriding "out" property to redirect script stdout to my own consumer. However, I've
noticed that *printf* inside closures does not respect that property (it always prints to
stdout) while *println* perfectly complies (and prints to whatever specified).


I beleive this is because of the differences in printf and println in
in []

println uses closure owner while printf does simple System.out.

This message was sent by Atlassian JIRA

View raw message