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 "David Jencks (JIRA)" <ax...@ws.apache.org> on 2005/01/16 00:57:17 UTC

[jira] Updated: (AXIS-1767) Style and other Enums are not serializable enumerated types

     [ http://issues.apache.org/jira/browse/AXIS-1767?page=history ]

David Jencks updated AXIS-1767:
-------------------------------

    Attachment: Style.diff

> Style and other Enums are not serializable enumerated types
> -----------------------------------------------------------
>
>          Key: AXIS-1767
>          URL: http://issues.apache.org/jira/browse/AXIS-1767
>      Project: Axis
>         Type: Bug
>     Versions: current (nightly)
>     Reporter: David Jencks
>  Attachments: Style.diff
>
> the Style and other Enum subclasses are not actually serializable enumerated types.  Serializing/deserializing produces a new instance.  Furthermore, the implementation seems quite broken since the Enum type field is always null due to constructing the Style instances in the Style.Type constructor, before the final static Style.type field is initialized.
> I can't see why such a complicated non-standard enumeration implementation is needed.  I've attached a more standard simpler implemenation that actually serializes/deserializes correctly.
> The equals method in Enum is also wrong, but I didn't fix it.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira