[jboss-user] [Javassist] - Re: ClassFile write(java.io.DataOutputStream out) generates empty file!!
Carlos Bruguera
do-not-reply at jboss.com
Wed Feb 9 13:33:45 EST 2011
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&containerType=14&container=2062]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110209/10541212/attachment.html
More information about the jboss-user
mailing list