I am trying to add an interface to cfc that includes some functions in the cfml file, however it gives an error message with the message "component [...] does not implement the interface function [..]" the function that it complains about is implemented in the included file cfml, I tested this in both railo 4 and lucee 5 and got the same error in both, but working in coldfusion 11 does anyone know if there is a workaround or fix for this in lucee or railo?
The following is an example code that reproduces the error.
int.cfc
interface { public numeric function func() output="false"; }
comp.cfc
component implements="int" { include "inc.cfm"; }
inc.cfm
<cfscript> public numeric function func() output="false"{ return 2; } </cfscript>
index.cfm
<cfscript> cfc = createObject("component", "comp"); writedump(cfc.func()); </cfscript>
source share