This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Android cloning my instances!
- From: Moritz Heidkamp <moritz-kawa at twoticketsplease dot de>
- To: kawa <kawa at sourceware dot org>
- Date: Tue, 01 Mar 2011 16:42:08 +0100
- Subject: Android cloning my instances!
Dear Kawanians,
it seems that Android clones instances of non-Android classes by default
for some reason. This forces me to implement java.lang.Cloneable
whenever I define a class from Kawa. Now the problem is that the clone
method doesn't clone object attributes by default. I'm wondering whether
there is a default way to make Kawa generate an appropriate clone
automatically or would I have to define a custom macro to do that?
Thanks in advance for your hints
Moritz