Original issue 30 created by henri-tremblay on 2014-12-13T13:20:34.000Z:
just found while adapting fast serialization (github) to android.
What steps will reproduce the problem?
- Create Externalizable ArrayList Subclass
- use objenesis new instance
- add an element to the arraylist subclass (=> exception)
What is the expected output? What do you see instead?
no excpetion
What version of the product are you using? On what operating system?
2.1
Please provide any additional information below.
the issue is, SunReflectionFactoryInstantiator always uses the "newConstructorForSerialization". However if there is public noarg constructor for an externalizable, this should be used instead (else initial state might be wrong).
Original issue 30 created by henri-tremblay on 2014-12-13T13:20:34.000Z:
just found while adapting fast serialization (github) to android.
What steps will reproduce the problem?
What is the expected output? What do you see instead?
no excpetion
What version of the product are you using? On what operating system?
2.1
Please provide any additional information below.
the issue is, SunReflectionFactoryInstantiator always uses the "newConstructorForSerialization". However if there is public noarg constructor for an externalizable, this should be used instead (else initial state might be wrong).