Status/Resolution/Reason: Closed/Withdrawn/CannotReproduce
Reporter/Name(from Bugbase): Jork Zijlstra / Jork Zijlstra (Jork Zijlstra)
Created: 04/17/2014
Components: Core Runtime
Versions: 10.0
Failure Type: Usability Issue
Found In Build/Fixed In Build: Final /
Priority/Frequency: Minor / Some users will encounter
Locale/System: English / Linux Ubuntu 10.10
Vote Count: 0
Problem Description:
When you have multiple component classes with the same name in the same codebase, you use the import statement, the create new 'class' just picks one out of all with the same name. This is not necessarily the one that is specified on the import on top of the class.
Steps to Reproduce:
// use zip file attached
// create /testUtils as mapping (or change import statement in Testimport.cfc)
// go to index.cfm
This zip file attached is a simplified version. It contains 2 classes called "Naming". This problem even exists when one of the Naming classed is located in another part of the codebase.
Actual Result:
The method test1 was not found
Expected Result:
The import select the correct class.
Any Workarounds:
1) Use FQDN when creating new objects, just like createObject.
2) Have a unqiue file name in your entire codebase
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3744955
External Customer Info:
External Company:
External Customer Name: Jork Zijlstra
External Customer Email:
External Test Config: My Hardware and Environment details:
Ubuntu 12.04 - CF10
Attachments:
- April 17, 2014 00:00:00: 1_naming.zip
- May 06, 2014 00:00:00: 2_namingclasses.zip
Comments: