[ 
https://issues.apache.org/jira/browse/AXIS-2610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12469041
 ] 

Max Winther commented on AXIS-2610:
-----------------------------------

Actually I think it should be a configurable value of which stragegy to use for 
serialVersionUID:
-Default as current, the compiler controls the versionid
-Explicit version id
- Default version id, in eclicpse 1L

I looked a litle into the source files of the task, and it appears to be deep 
down in the class org.apache.axis.wsdl.toJava.JavaBeanWriter the
method:

    protected String getImplementsText()
    {
        String implementsText = " implements java.io.Serializable";
        if(type.isSimpleType())
            implementsText = implementsText + ", 
org.apache.axis.encoding.SimpleType";
        implementsText = implementsText + " ";
        return implementsText;
    }

And seems that attributes are written into the file in the mehod: protected 
void writeMemberFields(), however this file do not imedeatly support default 
values as the serialVersionUID requires. 

Another issue is getting the parameter down there, which can be done be appears 
to be a process of changing many class from the task itself to the 
JavaBeanWriter.

regards

> java2wsdl should have option to automatically generatre serialVersionUID
> ------------------------------------------------------------------------
>
>                 Key: AXIS-2610
>                 URL: https://issues.apache.org/jira/browse/AXIS-2610
>             Project: Axis
>          Issue Type: New Feature
>          Components: Serialization/Deserialization
>    Affects Versions: 1.4
>            Reporter: Martin Zdila
>            Priority: Minor
>
> java2wsdl should have option to automatically generatre serialVersionUID
> otherwise i see in eclipse a warning at each generated class extending 
> java.io.Serializable
> thanks

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to