You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tim Ellison (JIRA)" <ji...@apache.org> on 2006/06/12 14:24:32 UTC

[jira] Commented: (HARMONY-592) java.lang.Enum does not deserialize correctly

    [ http://issues.apache.org/jira/browse/HARMONY-592?page=comments#action_12415846 ] 

Tim Ellison commented on HARMONY-592:
-------------------------------------

Richard,

Please can you try the patch below patch to see if it fixes the problem?
(The RI serialVer tool reports that Enum's SUID is zero, but JAPI claims it is the number below)

Index: luni/src/main/java/java/lang/Enum.java
===================================================================
--- luni/src/main/java/java/lang/Enum.java	(revision 412851)
+++ luni/src/main/java/java/lang/Enum.java	(working copy)
@@ -28,7 +28,7 @@
 public abstract class Enum<E extends Enum<E>> implements Serializable,
         Comparable<E> {
 
-    private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = -4300926546619394005L;
 
     private final String name;
 


>  java.lang.Enum does not deserialize correctly
> ----------------------------------------------
>
>          Key: HARMONY-592
>          URL: http://issues.apache.org/jira/browse/HARMONY-592
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Richard Liang
>  Attachments: 01.Harmony592.diff
>
> Hello,
> Deserialized Enum object doesn't equal to the original object. The following test will pass on RI, but fail on Harmony. I will try to attach patch soon :-)
> public void test_serialization() throws Exception {
>         assertTrue(SerializationTester.assertEquals(Sample.CURLY));
>     }
> Best regards,
> Richard

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira