Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
old-trunk
-
None
-
None
-
Not relevant
Description
Running WSDL2Java creates objects which implement java.io.Serializable, in the implementation of these objects they have an equals helper object, "java.lang.Object __equalsCalc". Because __equalsCalc is a member variable and it is not Serializable (it's an Object) the generated object is then not truly Serializable. The simple fix for this is to make __equalsCalc transient.
As of today (01/02/2008) the fix for this bug would be to change line 1221 in rg.apache.axis.wsdl.toJava.JavaBeanWriter from:
pw.println(" private java.lang.Object __equalsCalc = null;");
to:
pw.println(" private transient java.lang.Object __equalsCalc = null;");
Granted many people wouldn't notice this, but our internal build process has a strict serializable verifier.