DefaultTask broken in Gradle 2.0

Have the following code snippet:

class MyTask extends DefaultTask {


String state

def taskState = getState()

This fails to compile in 2.0 with this error:

The return type of java.lang.String getState() in MyTask is incompatible with org.gradle.api.tasks.TaskState in org.gradle.api.internal.AbstractTask

I think this is related to this change for decorated classes