Decompilers and serialization...
2 posts in topic
Flat View  Flat View

Posted By:   Barry_Wythoff
Posted On:   Sunday, March 30, 2003 01:20 PM

Can Java "decompilers" generate Java source from serialized Java class files?



Re: Decompilers and serialization...

Posted By:   Jeff_Drost  
Posted On:   Sunday, May 4, 2003 08:01 PM

A .class file declares the structure of instances of a give type (Class). It declares member variables, methods, and contains bytecode that is executable by a VM. It is basically a blueprint for creating an instance.

When you serialize an object, you are only serializing the instance, not the class declaration. This primarily consists of member variables of the instance.

Re: Decompilers and serialization...

Posted By:   Anonymous  
Posted On:   Thursday, April 3, 2003 10:09 PM

Good question. The answer is simply no. Serialization stores objects, not classes. Is that clear enough? If not,
serialize one class object and compare it with the .class file.
About | Sitemap | Contact