CFMX 7 and Super Fixes

So, I don’t think this was in the release notes, but either CFMX7 or 7.0.1 fixes a bug where a super call can’t use named arguments. In other words, this used to throw an error:

<cfreturn super.someMethod(arg1=value1, arg2=value2)>

As I said, this works fine now. However, if you try the same thing with a simple UDF copied to a structure, like the request scope, an error will occur:

Cannot invoke method ran on an object of type coldfusion.runtime.RequestScope with named arguments. Use ordered arguments instead.

I’ve filed a bug and hopefully this will be corrected.

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate looking for his next gig. He focuses on JavaScript, serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support.

Lafayette, LA