Carlos Bruguera [
http://community.jboss.org/people/cbruguera] created the discussion
"Re: ClassFile write(java.io.DataOutputStream out) generates empty file!!"
To view the discussion, visit:
http://community.jboss.org/message/586545#586545
--------------------------------------------------------------
Oh, I forgot..
writeFile(initClass) will just do this:
public static void writeFile(ClassFile cf){
try{
cf.setVersionToJava5();
cf.write(new DataOutputStream(new BufferedOutputStream(new
FileOutputStream(cf.getName() + ".class"))));
}catch(IOException e){
Errors.add("Error al escribir el archivo " + name);
}
}
I really need help :(
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/586545#586545]
Start a new discussion in Javassist at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]