Menu

#2 Infinite Loop in assertClass() when class does not match.

open
cfcUnit (5)
5
2007-06-05
2007-06-05
Anonymous
No

When class does not match the loop for a component will loop forever.

org.cfcunit.framework.Assert.cfc:144
<cfif NOT Len(message)>
<cfset message = "CFC is not of type '#arguments.class#'.">
<cfbreak/>
</cfif>

This should be:

<cfif NOT Len(message)>
<cfset message = "CFC is not of type '#arguments.class#'.">
</cfif>
<cfbreak/>

To ensure the loop breaks successfully.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB