Object ret = method.invoke(null, p0);
return returnsVoid ? Tuple0.INSTANCE : ret;
} catch (ReflectiveOperationException e) {
- if (e instanceof InvocationTargetException)
- throw new RuntimeException(e.getCause());
+ if (e instanceof InvocationTargetException) {
+ Throwable cause = e.getCause();
+ if(cause instanceof RuntimeException)
+ throw (RuntimeException)cause;
+ else
+ throw new RuntimeException(cause);
+ }
throw new RuntimeException(e);
}
}
Object ret = method.invoke(null, p0, p1);
return returnsVoid ? Tuple0.INSTANCE : ret;
} catch (ReflectiveOperationException e) {
+ if (e instanceof InvocationTargetException) {
+ Throwable cause = e.getCause();
+ if(cause instanceof RuntimeException)
+ throw (RuntimeException)cause;
+ else
+ throw new RuntimeException(cause);
+ }
throw new RuntimeException(e);
}
}
Object ret = method.invoke(null, p0, p1, p2);
return returnsVoid ? Tuple0.INSTANCE : ret;
} catch (ReflectiveOperationException e) {
+ if (e instanceof InvocationTargetException) {
+ Throwable cause = e.getCause();
+ if(cause instanceof RuntimeException)
+ throw (RuntimeException)cause;
+ else
+ throw new RuntimeException(cause);
+ }
throw new RuntimeException(e);
}
}
Object ret = method.invoke(null, p0, p1, p2, p3);
return returnsVoid ? Tuple0.INSTANCE : ret;
} catch (ReflectiveOperationException e) {
+ if (e instanceof InvocationTargetException) {
+ Throwable cause = e.getCause();
+ if(cause instanceof RuntimeException)
+ throw (RuntimeException)cause;
+ else
+ throw new RuntimeException(cause);
+ }
throw new RuntimeException(e);
}
}
Object ret = method.invoke(null, ps);
return returnsVoid ? Tuple0.INSTANCE : ret;
} catch (ReflectiveOperationException e) {
+ if (e instanceof InvocationTargetException) {
+ Throwable cause = e.getCause();
+ if(cause instanceof RuntimeException)
+ throw (RuntimeException)cause;
+ else
+ throw new RuntimeException(cause);
+ }
throw new RuntimeException(e);
}
}