Gentlemen,
Thanks so much for you input and successfully solving my issue.
Originally posted by Ernest Friedman-Hill:
I don't believe it's the call to getDeclaredMethod() that's the problem -- I believe it's the call to invoke()...
You are 100% correct of course... and had I paid closer attention to the line number shown in the compile warning and in the stack trace, I would have seen that. I swear that when I did that last night, the line number reported was that of the getDeclaredMethod(). Chalk it up to being too mentally fatigued
after a 10-hour coding session I guess. :roll: At least that is my excuse for making such a careless mistake... not that I would necessarily have solved the issue, but at least I would have been looking in the right place as I was trying to cast the getDeclaredMethod()'s vararg to an Object.
I took Jim's suggestion, along with a heavy dose of commenting, to keep the code as non-obscure as possible.
Again, I thank you both for your prompt and detailed replies. I consistently learn many things from each of you, and others here at the ranch, through your many quality posts. Have a happy Halloween!
[ October 29, 2006: Message edited by: Mark Vedder ]