Re: Loader in ObjectStreamClass.readClassDescriptor

2005-09-13 Thread Nicolas Geoffray
Hi Mark, Mark Wielaard wrote: Hi Nicolas, On Tue, 2005-08-02 at 14:08 +0200, Nicolas Geoffray wrote: Hi everyone, sorry for the typo, it was ObjectInputStream.readClassDescriptor that misbehaves. Shortly, when a reading a given class descriptor CL, it loads the class of a field from

Re: Loader in ObjectStreamClass.readClassDescriptor

2005-08-24 Thread Mark Wielaard
Hi Nicolas, On Tue, 2005-08-02 at 14:08 +0200, Nicolas Geoffray wrote: Hi everyone, sorry for the typo, it was ObjectInputStream.readClassDescriptor that misbehaves. Shortly, when a reading a given class descriptor CL, it loads the class of a field from CL with the currentClassLoader

Re: Loader in ObjectStreamClass.readClassDescriptor

2005-08-02 Thread Nicolas Geoffray
Hi everyone, sorry for the typo, it was ObjectInputStream.readClassDescriptor that misbehaves. Shortly, when a reading a given class descriptor CL, it loads the class of a field from CL with the currentClassLoader on the stack. But in RMI, the currentClassLoader is null, so loading the

Loader in ObjectStreamClass.readClassDescriptor

2005-07-22 Thread Nicolas Geoffray
Hello again, There's something that, I think, misbehaves in readClassDescriptor. Fields are read before the loading of the actual object's class CL in the stream, which is necessary. When loading the classes of the fields (before loading CL), the classloader given is the callersClassLoader