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: Robert Schuster
Subject: Re: [cp-patches] FYI: Fix serialization of Class objects
Date: Wed, 19 Jan 2005 01:31:29 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.5) Gecko/20050107



Mark Wielaard wrote:
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.
Forgive the usage of evil proprietary software but the javac does not primitive-named class in the unnamed package:

public class int {

}

It mourns when it reaches the "int". I'm pretty sure that is no implementation bug.
If it where possible to name a class 'int' how could I create an instance of it?

cu
Robert


reply via email to

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