This content has been marked as final.
Show 1 reply
-
1. Re: copying methods
chiba Nov 23, 2005 11:06 PM (in response to johncoleman)I again recommend you to use ClassPool and CtClass, CtMethod, ... They provide a number of utility methods
for creating a getter method etc.
Otherwise, you must construct a MethodInfo by hand
(you must specify a sequence Java bytecode as a body).
Bytecode class would help you.