harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dalibor Topic <robi...@kaffe.org>
Subject Re: Question re: Object Serialization?
Date Wed, 18 May 2005 14:18:57 GMT
Josué Alcalde González wrote:
> But, wouldn't  it be necessary  to take a look to sun api and copy 
> serialVersionUID?
> For example, String class, has a:
> final private static long serialVersionUID = -6849794470754667710L;
> If this serial number doesn't match harmony String serial, serialization 
> wouldn't work.

The UIDs are specified, yes. In general, if you want your classes to 
serilize in a compatible way accross different compilers, you specify a 
SVUID, due to the way the Java Language Specification deals with inner 
classes and such. See for example Jikes mailing list archives for details.

dalibor topic

View raw message