Warning: session_start(): open(/var/lib/php/sessions/sess_v7dhg572vovq45jnh0fmr8r9cj, 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
!759
lib 1004055
import org.apache.bcel.classfile.ClassParser;
import org.apache.bcel.classfile.JavaClass;
import org.apache.bcel.classfile.Attribute;
import org.apache.bcel.classfile.SourceFile;
import org.apache.bcel.generic.*;
p {
JavaClass c = new ClassParser (
main.class.getResourceAsStream("/main.class"), "main.class").parse();
print(c.getSourceFileName());
ClassGen g = new ClassGen(c);
S newName = parseSnippetID(programID()) + ".javax";
int nameIndex = g.getConstantPool().addUtf8(newName);
for (Attribute attr : g.getAttributes())
if (attr instanceof SourceFile) {
g.removeAttribute(attr);
break;
}
g.addAttribute(new SourceFile(
g.getConstantPool().addUtf8("SourceFile"),
2,
nameIndex,
g.getConstantPool().getConstantPool()));
c = g.getJavaClass();
File f;
c.dump(f = prepareProgramFile("main.class"));
c = new ClassParser (f.getPath()).parse();
print(c.getSourceFileName());
}