I have the following java code in android
Method getIfaceMethod =
service.getClass().getDeclaredMethod("getIface", new Class<?>[0]);
getIfaceMethod.invoke(param1)));
Sometimes an exception occurs when he cannot call the method through reflection. The exception thrown is an UnspportedOperationException. The strange thing is that when I call getCause, it returns itself - take a look at the screenshot from the debugger:

What the heck??
source
share