[jboss-user] [Javassist user questions] - Modifying Bytecode inside of Jars
Daim
do-not-reply at jboss.com
Mon Jan 28 17:09:32 EST 2008
Hi, i got a simple question.
I have set the classpool to a jar file and obtained a CtClass Object from it. I changed the bytecode of this class. Now how do i write it back into the jar file?
When i use class.writeFile() without parameters it's not saved inside the jar. When i give a new location as parameter the modified classfile is saved correct to that place.
But how do i overwrite the original classfile iside the jar?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124200#4124200
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124200
More information about the jboss-user
mailing list