You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Nick West (JIRA)" <ax...@ws.apache.org> on 2008/01/02 23:10:33 UTC

[jira] Created: (AXIS-2715) WSDL2Java created serializable object's __equalsCalc member variable should be transient

WSDL2Java created serializable object's __equalsCalc member variable should be transient
----------------------------------------------------------------------------------------

                 Key: AXIS-2715
                 URL: https://issues.apache.org/jira/browse/AXIS-2715
             Project: Axis
          Issue Type: Bug
          Components: Serialization/Deserialization
    Affects Versions: 1.5
         Environment: Not relevant
            Reporter: Nick West
            Priority: Minor


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org