[GRADLE-2863] Private method calls of DSL enhanced objects may not work correctly Created: 08/Aug/13 Updated: 24/Nov/13 Resolved: 24/Nov/13
|Known Issue Of:|
In certain circumstances, calling private methods inside DSL enhanced objects (typically either Task implementations or extensions) will produce strange results. This only affects classes implemented in Groovy.
There are two known issues:
1. Method arguments are not type coerced according to normal Groovy rules (e.g. GStrings automatically converted to strings)
The workaround for this is to:
1. Factor the private method out of the decorated class
#2 Can be said another way as: the method call should succeed according to Java semantics, not Groovy semantics.