I am modifying an existing constructor
| CtConstructor constructor=cc.getConstructors()[0]; | constructor.setBody("System.out.println(\"hello1\"); System.out.println(\"hello2\"); "); | But for some reason, only the first statement is added (I double checked by decompiling the class), and when running only Hello1 is printed. Anyone know what the problem might be, and how to fix this? Thanks! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867177#3867177 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3867177 ------------------------------------------------------- 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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user