tracker issue : CF-3302639

select a category, or use search below
(searches all categories and all time range)
Title:

Extending CFC with implicit getters and setters

| View in Tracker

Status/Resolution/Reason: To Fix//

Reporter/Name(from Bugbase): steve ryan / steve ryan (steveCFGuy123)

Created: 08/03/2012

Components: Language, CF Component

Versions: 9.0.1

Failure Type: Unspecified

Found In Build/Fixed In Build: 9.0.1 /

Priority/Frequency: Trivial / All users will encounter

Locale/System: English / Linux All

Vote Count: 0

Problem Description:
If you create a component with implicit getters and setters and extend that component in another component, the implicit getters are extended in the variables scope.  However, the setters are not extending in the variables scope but can be referenced by not scoping the setter.  In contrast, setters explicitly declared in a component being extended are scoped in the variables scope.

variables.getLastName()                     works
variables.setLastName("ryan")           does NOT work
setLastName("ryan")                           works



Steps to Reproduce:
Step 1) Make a component with implicit getters and setters.
Step 2) Extend that component into another component.
Step 3) cfdump the variables scope and you will find no setters
Actual Result:
implicit getters are scoped in the variables scope.
implicit setters are NOT scoped in the variables scope.

Expected Result:
Both implicit setters and getters should be scoped in the variables scope.

Any Workarounds:
Yes, refer to the setter without scope and it works.  Refer to the example above.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3302639

External Customer Info:
External Company:  
External Customer Name: steveCFGuy123
External Customer Email:  
External Test Config: My Hardware and Environment details:  Coldfusion 9.01, Linux, VPS server

Attachments:

Comments: