Profile cover photo
Profile photo
AJ Michels
I am a web developer, husband, and father living and working in the Twin Cities.
I am a web developer, husband, and father living and working in the Twin Cities.
About
Posts

Post has attachment

Post has attachment

Has anyone ever run into type checking issues with ColdFusion interfaces?

The specific issue that I am running into is that while isInstanceOf() seems to recognize that my object implements an interface the function definition does not.  If I try to pass an argument into my function and enforce type="path.to.my.interface" ColdFusion throws an exception while isInstanceOf(myVar, "path.to.my.interface") returns "true".  This is incredibly frustrating and pretty much cripples the functionality of interfaces.

Does anyone know of a fix for this issue?

We are currently using CF8 because of legacy code.  Maybe this has been resolved in newer versions, I have not yet checked.

Post has attachment

Post has attachment

Post has attachment
Photo
Photo
2 Photos - View album
Add a comment...

Post has attachment

Post has attachment

Post has attachment
Add a comment...

Post has attachment
Wait while more posts are being loaded