Original Code: class ClassA{ class ClassB{}{ } } ------------------------------------------ Javaassist code : CtClass cc = pool.makeClass("ClassA"); CtField cf = CtField.make("public static String value;", cc); cc.addField(cf); ------------------------------------------ when executed, the ClassA.class as following: class ClassA{ public static String value; class ClassB{}{ public static String value; } }
-------------------------------------------- so my question is how to avoid adding the "value" field to ClassB. my execpted result is : class ClassA{ public static String value; class ClassB{}{ } } View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885187#3885187 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3885187 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user