Is it possible to use the '$$' entity to call a vararg method of type Object? I am failing to do so, and wanted to ask.
I want to call a method that looks like this:
Result handle(Integer pos, Object... args) { ... }
...using a method like this:
Result newHandle(Integer pos, Thing1, one, Thing2 two) {
"return handle($$);"
}
The javassist compiler fails because it cannot find "handle(Integer, Thing1, Thing2);
If I did this with straight java code, the compiler would map thing1 and thing2 to the Object[] array.