Coincidently I just bumped into what might be the solution:
========================
return interfaceObj.getClass().isAssignableFrom(testObj.g etClass());
========================
This tests whether interfaceObj is the same or a superclass/interface
of testObj. Quoting the API doc:
"Determines if the class or interface represented by this Class object
is either the same as, or is a superclass or superinterface of, the
class or interface represented by the specified Class parameter. It
returns true if so; otherwise it returns false. If this Class object
represents a primitive type, this method returns true if the specified
Class parameter is exactly this Class object; otherwise it returns
false."
I guess I learned something new today
Thanks,
cyberco