[GRADLE-1634] AbstractTask#execute() should be final. Created: 23/Jun/11  Updated: 04/Jan/13  Resolved: 14/Jul/11

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 1.0-milestone-4

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


 Description   

There is a strong tendency to unintentionally override this method when developing a custom task. Doing this will silently bypass up-to-date and onlyIf checks etc.

After discussion, Adam advocated just making the method final.



 Comments   
Comment by Luke Daley [ 14/Jul/11 ]

By: https://github.com/gradle/gradle/commit/cc962e4c91751d650c0d680067276d85448cc487

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