Here is my thought. The JVM throws an exception if a class has two methods with the same name and signature becuase such a class cannot pass the bytecode verification. This is the spec.
I guess the reason that the JVM accepts a class that has two fields with the same name is because the JVM wrongly ignore such duplicated fields, i.e. this is a bug of the JVM. I don't know. Anyway, if you use Javassist 3.0, Javassist does not allow you to create such borken classes! Please try it. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835688#3835688 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3835688 ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user