Greetings, I'm a new user of Javassist. My group is trying to use Javassist to instrument java class file for our research project. I have a few questions regarding Javassist: 1. Methods such as getMethods, getMethod, getClassInitializer are not implemented functionable in CtClass. Are we expecting them to be implemented soon? 2. In FieldAccess class, why isn't there a getOpcode() function? Since our project requires us to access the field depending on the opcode, it is necessary for use. but generally I think this will be a very useful function in FieldAccess. 3. I read an article on IBM's website (http://www-106.ibm.com/developerworks/java/library/j-dyn0302.html) on how to use ExprEditor in javassist. However, this does not work anymore as the static method ClassPool.GetDefault() does not take Translator as parameter anymore in javassist 3. It works with javassist 2.6. How can I replace a field access with a function call using ExprEditor now? Is there any reference on it? CodeConverter would not work for use as we need to pass the field object as a parameter to the function being called up the access.
Thanks for any help! Regards, Liam View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852141#3852141 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852141 ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
