[JBoss-user] [Javassist user questions] - Re: bug in ExprEditor.edit(NewExpr call) when in try-catch-b

2004-08-19 Thread fedor
// 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

[JBoss-user] [Javassist user questions] - bug in ExprEditor.edit(NewExpr call) when in try-catch-block

2004-08-18 Thread fedor
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

[JBoss-user] [Javassist user questions] - LineNumberAttribute; invalid pc in line number table

2004-07-16 Thread fedor
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