Warning: session_start(): open(/var/lib/php/sessions/sess_bghgs2dlrso6i2lpmcupsdjoko, 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
// finds the byte code path root (dir or jar)
// TODO: inner classes will not be found (need to replace . with $)
static File byteCodePathForClass(Class c) {
if (c == null) null;
ClassLoader cl = getClassLoader(c);
// handle JavaXClassLoader
Cl files = cast getOpt(cl, 'files);
if (files != null) {
S name = c.getName().replace('.', '/') + ".class";
for (File location : files)
if (dirOrZipContainsPath(location, name))
ret location;
fail(name + " not found in: " + files);
}
null;
}
static File byteCodePathForClass(O o) {
ret byteCodePathForClass(_getClass(o));
}