Uploaded image for project: 'Axis'
  1. Axis
  2. AXIS-2715

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: old-trunk
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nickwwest Nick West
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: