You are not trying to duplicate, rather to overload the method. I usually do 
this:
1) create a StringBuffer where I place the java source code for the new method;
2) use CtNewMethod.make() to obtain a new CtMethod for the source code;
3) add the method to the CtClass.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128163#4128163

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128163
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to