Re: RFR: [8039396] NPE when writing a class descriptor object to a custom ObjectOutputStream

2014-04-15 Thread Alan Bateman
On 11/04/2014 09:01, Ivan Gerasimov wrote: Hello everybody! ObjectStreamClass#forClass() function is allowed to return null, if the local VM does not have the corresponding local class. Because of that, NPE can be encountered during serialization through a subclass of ObjectOutputStream.

Re: RFR: [8039396] NPE when writing a class descriptor object to a custom ObjectOutputStream

2014-04-15 Thread Ivan Gerasimov
Thank you Alan! I'll reformat the test before pushing to make it fit into the half of the screen. Sincerely yours, Ivan On 15.04.2014 12:56, Alan Bateman wrote: On 11/04/2014 09:01, Ivan Gerasimov wrote: Hello everybody! ObjectStreamClass#forClass() function is allowed to return null, if

RFR: [8039396] NPE when writing a class descriptor object to a custom ObjectOutputStream

2014-04-11 Thread Ivan Gerasimov
Hello everybody! ObjectStreamClass#forClass() function is allowed to return null, if the local VM does not have the corresponding local class. Because of that, NPE can be encountered during serialization through a subclass of ObjectOutputStream. Would you please help review the fix? BUGURL: