GitHub user jwagenleitner opened a pull request: https://github.com/apache/groovy/pull/670
GROOVY-8475: unable to instantiate objects using the "new" keyword in groovysh PR #100 was merged into 2_5_X and comments on GROOVY-7562 indicate it wasn't merged into 2_4_X due to binary compatibility concerns. I think this backport addresses those concerns and this PR is targeted only for the 2_4_X branch. You can merge this pull request into a Git repository by running: $ git pull https://github.com/jwagenleitner/groovy 8475-groovysh-new Alternatively you can review and apply these changes as the patch at: https://github.com/apache/groovy/pull/670.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #670 ---- commit c220753e867f733ac7c68a56d5a8dd9aa5ac60dc Author: John Wagenleitner <jwagenleitner@...> Date: 2018-03-04T01:53:40Z GROOVY-8475: unable to instantiate objects using the "new" keyword in groovysh Backport fix "GROOVY-7562 Groovysh: Fix custom class instantiation impossible with Interpreter Mode" for the 2_4_X branch. Retain binary compatibilty by retaining and deprecating methods removed in the original fix that was applied to 2_5_X. commit 567bd1e525b8752a7594bf594e86596c9e3f19bb Author: John Wagenleitner <jwagenleitner@...> Date: 2018-03-04T04:21:16Z backport fix GROOVY-7562 for the 2_4_X branch Groovysh: Fix imports not working at all in interpreter mode ---- ---