I am working with some AOP components and I am having issues working with arguments. What I get from calling getArgs() appears to be a special Railo datatype (“Scope Arguments”) which seems to be a sort of composite key structure/map/array (I am not very familiar with the Java datatypes).
When I call a method with a single argument that is being advised and dump the arguments I get:
1|1|bar
When I call the same method but use a named argument I get:
foo>1|bar 1 |2|bar
This is causing me a bit of consternation. I can’t just use structKeyExists(invocation.getArgs(), “foo”), I have to somehow account for the method also being called without named arguments. And since the same argument shows up as two values within the “array” I can’t rely on the order be the same every time.
Is this an issue with Railo? Does anyone have a workaround?