Title:
Bug 79313:Backwards compatibility is broken through the new implicit getter/setters from the use of <cfproperty> when onMissingMethod() is used to provide similar functionality
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Tim Blair / Tim Blair (Psionix)
Created: 08/06/2009
Components: Language, CF Component
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 9,0,0,241018 / 246082
Priority/Frequency: Normal / Unknown
Locale/System: English / Platforms All
Vote Count: 3
Problem:
Backwards compatibility is broken through the new implicit getter/setters from the use of <cfproperty> when onMissingMethod() is used to provide similar functionality.Some systems and frameworks (e.g. http://restfulcf.riaforge.org/) use onMissingMethod() as a catch-all handler for getting/setting arbitrary attributes defined through <cfproperty> tags. This behaviour is overridden by CF9's introduction of implicit getters/setters for all <cfproperty> tags.Although the creation of these implicit setters/getters can be avoided by the use of the appropriate specification of getter="false" (or setter as appropriate) in the <cfproperty> tag, there is no quick way of doing so other than defining [s/g]etter="false" on every single property.A simple solution would be the addition of [s/g]etter="false" type attributes to the <cfcomponent> tag, which would change the default for any properties defined in that component or any that extend it; this behaviour could then be overridden on a per-property basis as appropriate.If the implicit setter/getter functions is to become the default (as is reasonable) then it is sensible to provide as simple as possible a solution for systems that don't want _any_ getters/setters defined.
Method:
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3039585
External Customer Info:
External Company:
External Customer Name: Tim Blair
External Customer Email: 01CC32DD3FE0D08E9920157F
External Test Config: 08/06/2009
Attachments:
Comments: