[GRADLE-2120] ConfigureUtil.configureByMap does not work correctly with decorated objects (does not call methods with the given name) Created: 22/Feb/12  Updated: 04/Jan/13  Resolved: 22/Feb/12

Status: Resolved
Project: Gradle
Affects Version/s: 1.0-milestone-8a
Fix Version/s: 1.0-milestone-9

Type: Bug
Reporter: Luke Daley Assignee: Luke Daley
Resolution: Fixed Votes: 0

Issue Links:
Related
Related to GRADLE-2119 Cannot specify builtBy for artifact u... Resolved

 Description   
class SomeTask extends DefaultTask {
  def value

  def method(value) {
    this.value = value
  }
}

def task = project.task("test", type: SomeTask)
ConfigureUtil.configureByMap(task, method: "foo")

assert task.value == "foo" // fails
assert task.method == "foo" // passes

If the target object is decorated, a dynamic object will be created instead of the method being called.


Generated at Wed Jun 30 12:13:20 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.