Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Jonas Meller / Jonas Meller ()
Created: 02/13/2017
Components: Language, CF Component
Versions: 2016
Failure Type: Others
Found In Build/Fixed In Build: 2016.0.03.301754 / 302165
Priority/Frequency: Major /
Locale/System: / Windows 7 SP1 64-bit
Vote Count: 0
Problem Description:
CFC type check seems to be broken.
I have not checked "Disable CFC Type Check" in CF Administrator.
Steps to Reproduce:
Cat.cfc:
<cfcomponent output="false">
</cfcomponent>
Dog.cfc:
<cfcomponent output="false">
</cfcomponent>
Service.cfc:
<cfcomponent output="false">
<cffunction name="feedCat" access="public" returntype="void" output="false">
<cfargument name="cat" type="Cat" required="true" />
</cffunction>
</cfcomponent>
test.cfm:
<cfset service = CreateObject('component', 'Service') />
<cfset dog = CreateObject('component', 'Dog') />
<cfset cat = CreateObject('component', 'Cat') />
<cfset service.feedCat(cat) />
<cfset service.feedCat(dog) />
Actual Result:
No exception
Expected Result:
Exception: The CAT argument passed to the feedCat function is not of type Cat.
Any Workarounds:
Attachments:
Comments: