Hi, I am trying to use enum in my bindings as: <structure type="TableList" field="tableList" name="table_list" ordered="false" usage="optional"> <value style="attribute" name="table" field="table" usage="optional"/> </structure> Here the table would contain the table enum.
I have also defined table before as: <format type="Table" enum-value-method="toString"/> Bindings are compiled successfully. Now before marshaling the xml I set the following: tableList.table = TABLE_ENUM_VAL This gives me following error: java.lang.ClassFormatError: Repetitive method name/signature in class file Table at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) When I checked the decompiled byte code of enum Table I see the following: multiple occurrences of: public static String _jibx_serialize(Table arg1) public static Table _jibx_deserialize(String arg1) throws JiBXException It looks like jibx bindings have corrupted the Table class and now it does not get loaded. Please let me know what I am doing wrong. How to fix this error. Thanks Sachin ----- http://www.assembla.com/wiki/show/sachin_mittal about me: -- View this message in context: http://www.nabble.com/Enum-binding-corrupting-the-class-with-error%3A-java.lang.ClassFormatError%3A-Repetitive-method-name-signature-in-class-file-Table-tp23889842p23889842.html Sent from the jibx-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users