Re: Serialization and non public constructors
Posted By:
Vitali_Chkliar
Posted On:
Wednesday, April 19, 2006 02:13 PM
java.io.ObjectStreamClass.newInstance() method has the following line: return cons.newInstance(new Object[0]); where cons is java.lang.reflect.Constructor
I think it will fail if no args constructor is not public.