This content has been marked as final.
Show 1 reply
-
1. Re: how to avoid adding field to InnerClasses
chiba Jul 19, 2005 9:26 PM (in response to panzer_kavalier)Your sample code seems weird. At least, the first line:
CtClass cc = pool.makeClass("ClassA");
should be:
CtClass cc = pool.get("ClassA");
since makeClass() creates a new empty copy of ClassA.
Can you post a real test program? If the behavior
you observed is real, it is a bug.