Hi, I'm new to javassit and am trying to create a method with local variables. As I couldn't find any examples I tried the code below. I was just wondering whether this is the right way to do this or is there a better approach.
Thanks, John. meth.setBody(null); | meth.addLocalVariable("a", CtClass.intType); | meth.insertAfter("a = 1; return a;"); | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857818#3857818 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857818 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user