tracker issue : CF-4198335

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

CFC type check broken

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Jonas Meller / Jonas Meller ()

Created: 02/13/2017

Components: CFComponent

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

Listed in the version 2016.0.04.302561 Issues Fixed doc
Verification notes: verified_fixed on October 01, 2017 using build 2016.0.04.302561
Problem Description:
CFC type check seems to be broken.

I have not checked "Disable CFC Type Check" in CF Administrator.

Steps to Reproduce:
<cfcomponent output="false">

<cfcomponent output="false">

<cfcomponent output="false">
	<cffunction name="feedCat" access="public" returntype="void" output="false">
		<cfargument name="cat" type="Cat" required="true" />

<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:



Verified this is fixed in CF2016 Update 4 (build 2016.0.04.302561). Thanks!, -Aaron
Comment by Aaron N.
1186 | October 01, 2017 03:33:44 AM GMT