Title:
Bug 78990:(Watson Migration Closure)The new CFC-Bean functionality breaks all version of Mach-II when used with the extremely common <event-bean> XML command in Mach-II because no init() available
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/
Reporter/Name(from Bugbase): Peter Farrell / Peter Farrell (MaestroFJP)
Created: 07/22/2009
Components: Language, CF Component
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Platforms All
Vote Count: 23
Problem:
The new CFC-Bean functionality breaks all version of Mach-II when used with the extremely common <event-bean> XML command in Mach-II because no init() available. An init() method has become the default best practice when programming in CFML and this feature breaks backward compatibility with Mach-II and other frameworks like Model-Glue, Fusebox and possibly ColdBox. This affects Mach-II versions 1.0.7, 1.0.8, 1.0.10, 1.1.0, 1.1.1, 1.5.0, 1.6.0, 1.6.1 and 1.8.0.While it should not be called automatically, a basic init() method should be available to call (with cfarguments for each property -- each argument is not required and has a default that corresponds to the value in the cfproperty). This way it does not break backward compatibility with the current most popular frameworks for CFML and continues enforcing the best practices already in use by CFML developers.
Method:
The follow CFC-Bean fail on all versions of Mach-II when uses with <event-bean> XML command:<cfcomponent strict="true"> <cfproperty name="field1" type="int" /></cfcomponent> This also will fail on other CFML frameworks -- all which have a similar feature to Mach-II.
Result:
None. (Cannot no method named 'init' found).
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3039398
External Customer Info:
External Company:
External Customer Name: Peter Farrell
External Customer Email: 49ED14CD43A7342099201674
External Test Config: 07/22/2009
Attachments:
Comments: