tracker issue : CF-3041264

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

Bug 82580:When using Script based CFCs, and import statements, typing on return typed and argument types can randomly be resolved incorrectly, if there are more than 1 CFC with the same name in a directory stru

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/

Reporter/Name(from Bugbase): Mark Mandel / Mark Mandel (mark.mandel)

Created: 04/01/2010

Components: Language, CF Component

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Platforms All

Vote Count: 0

Problem:

When using Script based CFCs, and import statements, typing on return typed and argument types can randomly be resolved incorrectly, if there are more than 1 CFC with the same name in a directory structure. This results in non-matching type exceptions being thrown as the type is set wrong.
Method:

[vmannebo 11/29/2010] \\blrfs04.macromedia.com\builds\coldfusion\bugs\82580\*

Say we have:
/com/package1/Car.cfc
/com/package2/Car.cfc

And I write a CFC that looks like this:
import com.package1.*;
component {   
public ExampleObject function init(required Car car) {    //.. do stuff    }}

Randomly, the init() argument function 'car' will resolve to 'com.package2.Car', rather than 'com.package1.Car', which then throws an error, as it is looking for the wrong type.The same thing can also happen with return types.
Result:

'The foo argument passed to the init function is not of type Foo.'

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

Watson Bug ID:	3041264

External Customer Info:
External Company:  
External Customer Name: Mark Mandel
External Customer Email: 3EA9517D445A9E8999201549
External Test Config: 04/01/2010

Attachments:

Comments: