// code to patch class-file:
|
| import javassist.*;
| import javassist.expr.*;
| import java.io.*;
| import java.util.*;
| public class Patch
| {
| public static void main(String args[])
| throws Exception
| {
| File f=new File
I'm using java-assist to rewrite code using ExprEditor and NewExpr.replace(). When my
code looks like this:
HashMap h=new HashMap(size);
it has to be converted to
HashMap h=new HashMapWrapper(size,some_extra_params);
The wrapper is not a real wrapper, but just extends the real HashMap.
Everythi
ed to read the LineNumberAttribute
stuff, but I can't find a way to remove it.
Is there a way to do this using javassist?
thanx in advance,
Fedor
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842374#3842374
Reply to the post :
http://www.jbos