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.

Comments

Using CFMX 6.1 I have about the same errormessage
<code>
Cannot invoke method setSessionStatus on an object of type coldfusion.runtime.Struct with named arguments.
</code>
but in a different situation.

It's kinda weird actually, if I use named arguments when I call an UDF that I rescoped to the request scope _and_ don't provide all (optional) arguments I get the error above. (i.e. request.udf.setSessionStatus( arg1 = 'something', arg3 = 'something else' );)
As far as I can tell it does work when you:

1. Provide all the arguments (even the optional ones).
2. Don't rescope them and use setSessionStatus( ... ) instead of request.udf.setSessionStatus( ... ).

I thought I'd post it for people searching on the errormessage.

PS. I do not know whether or not this works on CFMX 7.
# Posted By Auke van Leeuwen | 12/6/05 9:04 AM