Title:
invokeImplicitAccessor should be a CFC setting, not an Application.cfc setting
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)
Created: 02/17/2015
Components: Language
Versions: 11.0
Failure Type: Usability Issue
Found In Build/Fixed In Build: CF11_Final / latest build
Priority/Frequency: Minor / Some users will encounter
Locale/System: English / Platforms All
Vote Count: 5
SSIA, really.
This functionality is specifically related to CFCs, and only makes sense if implemented on a CFC-by CFC basis.
Indeed, the setting shouldn't be necessary at all! This should just work:
// General.cfc
component {
property x;
function getX(){
return x;
}
function setX(x){
variables.x = arguments.x;
}
}
// general.cfm
o = new General();
o.x = "value"; // calls setX()
writeOutput("Value from o.x: #o.x#<br>"); // calls getX()
It shouldn't *need* a setting for this to work. It should just work!
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3941602
External Customer Info:
External Company:
External Customer Name: Adam
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: