New issue 13 by rdama...@gmail.com: Add Dalvik VM support
http://code.google.com/p/objenesis/issues/detail?id=13
Objenesis should support Android's VM, Dalvik.
Instantiating objects in it can be done with the technique described here:
http://stackoverflow.com/questions/3121515/is-it-possible-to-bypass-constructors-when-instantiating-objects-in-android
which in fact is already quite similar to what objenesis uses in other VMs.
I'm willing to try to implement it if you agree.
Thanks
Comment #1 on issue 13 by henri.tremblay: Add Dalvik VM support
http://code.google.com/p/objenesis/issues/detail?id=13
We absolutely agree. If a patch is provided, it will be included in the
next release.
Comment #2 on issue 13 by henri.tremblay: Add Dalvik VM support
http://code.google.com/p/objenesis/issues/detail?id=13
(No comment was entered for this change.)
I'd have made a patch, but I think this deserves a look from someone who
knows the objenesis code better, since it's very similar to
http://code.google.com/p/objenesis/source/browse/trunk/main/src/org/objenesis/instantiator/basic/ObjectInputStreamInstantiator.java
but I don't really understand what the serialized data put there does. It's
also very similar to
http://code.google.com/p/objenesis/source/browse/trunk/main/src/org/objenesis/instantiator/basic/ObjectStreamClassInstantiator.java
but I don't see the newinstance method for that class in Android (it uses
Harmony afaik).