classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] FYI: Fix serialization of Class objects


From: Mark Wielaard
Subject: Re: [cp-patches] FYI: Fix serialization of Class objects
Date: Wed, 19 Jan 2005 01:15:57 +0100

On Tue, 2005-01-18 at 17:34 -0600, Archie Cobbs wrote:

> I don't know much about this stuff, but the above code seems to
> imply that something is not going to work if I have a class named
> e.g., "int" or "long", which is otherwise perfectly valid. Is this
> a bug in the serialization protocol spec or in our implementatin?

Ugh. You can have classes named after primitive types in the unnamed
package... Bah. Seems like there is not very much we can do about that
since the class name in the serial stream is given as its (fully
qualified) name, not its type descriptor (like done for array types or
fields). The serial version uid and/or fields and methods will most
likely be different so you will get a InvalidClassException from the
checkTypeConsistency() method.

Cheers,

Mark

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]