Hi, I'm using javassist to merge two classes into a single one. To do this, I copy each member from the class B into the class A (I do not post the code to keep the message short, but I can post it if needed) and then instantiate the A object. Both the classes implement the Intf interface, and I use this interface as base for accepting object that must be merged. Everything seems to work, and if I perform reflection I can see the B's members into A. The problem is that if I try to invoke a method on A (thru reflection) I got an InvocationError, and the same if I try to convert (cast) A from its interface Intf to A itself (ClassCastException). It sounds like A has the right information but is not manipulated properly. Moreover, I've tried to write A on a file and reload it from file thru serialization and I got problems due to the serialization version number.
Thanks, Luca View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3897041#3897041 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3897041 ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
