Warning: session_start(): open(/var/lib/php/sessions/sess_ha4inscvcr8t63h4vc5uq5l2cv, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static O call_withVarargs(O o, S method, O... args) ctex {
if (o == null) null;
if (o instanceof Class) {
Class c = (Class) o;
_MethodCache cache = callOpt_getCache(c);
Method me = cache.findMethod(method, args);
if (me == null) {
// TODO: varargs
fail("Method " + c.getName() + "." + method + "(" + joinWithComma(classNames(args)) + ") not found");
}
if ((me.getModifiers() & Modifier.STATIC) == 0)
fail("Method " + c.getName() + "." + method + "(" + joinWithComma(classNames(args)) + ") not static");
ret invokeMethod(me, null, args);
} else {
Class c = o.getClass();
_MethodCache cache = callOpt_getCache(c);
Method me = cache.findMethod(method, args);
if (me != null)
ret invokeMethod(me, o, args);
// try varargs
L methods = cache.cache.get(method);
if (methods != null) methodSearch: for (Method m : methods) {
continue unless m.isVarArgs();
O[] newArgs = massageArgsForVarArgsCall(m, args);
if (newArgs != null)
ret invokeMethod(m, o, newArgs);
}
fail("Method " + c.getName() + "." + method + "(" + joinWithComma(classNames(args)) + ") not found");
}
}