harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-1123) Different class serialVesrionUIDs printed by RI and harmony when class compiled with Eclipse compiler
Date Thu, 17 Aug 2006 18:53:15 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-1123?page=comments#action_12428741 ] 
            
Tim Ellison commented on HARMONY-1123:
--------------------------------------

There is no requirement for them to be the same.  Indeed the serialization spec explicitly
states that the default SUID may vary by compiler.

I propose that this is resolved as won't fix.


> Different class serialVesrionUIDs printed by RI and harmony when class compiled with
Eclipse compiler
> -----------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1123
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1123
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows XP Professional IA32
>            Reporter: Anton Luht
>            Priority: Minor
>         Attachments: Test.class
>
>
> The following code:
> import java.io.ObjectStreamClass;
> import java.io.Serializable;
> public class Test implements Serializable {
>     public static void main(String[] args) {
>         System.err.println(ObjectStreamClass.lookup(Test.class).getSerialVersionUID());
>     }
> }
> compled with Eclipse compiler prints in DRLVM+Harmony serial version that differs from
RI:
> RI 1.4:
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)      17:11
> BEA WebLogic JRockit(TM) 1.4.2_04 JVM  (build ari-31788-20040616-1132-win-ia32,
> Native Threads, GC strategy: parallel)
> -685733381553069680
> RI 1.5:
> java version "1.5.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
> BEA WebLogic JRockit(R) (build dra-38972-20041208-2001-win-ia32, R25.0.0-75, GC:
>  System optimized over throughput (initial strategy singleparpar))
> -685733381553069680
> DRLVM + Harmony:
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r430024, (Aug  9 2006), Windows/ia32/msvc 1310, debug build
> http://incubator.apache.org/harmony
> 5425548825465637688
> If we compile same class with RI 1.4 or 1.5 javac , all serial version uids will be the
same:
> with 1.4 javac : 2581399349675783478
> with 1.5 javac : -1279921928557717157
> Please see class file attached.

-- 
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

        

Mime
View raw message