No, it's not possible for two reasons:
1. HaikuVM does not support reflection.
2. HaikuVM uses the leJOS runtime. And this runtime has no implementation of ObjectOutputStream nor ObjectInputStream.
I only can think of a proprietary solution for HaikuVM (and a much weaker solution than serialisation support of a full blown JVM). The Memory Layout of HaikuVM Objects tries to mimic a C struct layout of a block of memory e.g. an object memory space. (In contrast a classic Java class typically doesn't.) The idea is to make the mapping to C as close as possible to simplify implementation and improve execution speed. (see http://haiku-vm.sourceforge.net/#[[Memory%20Layout%20of%20HaikuVM%20Objects]])
Last edit: genom2 2015-03-14
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Does HaikuVM support serialisation?
No, it's not possible for two reasons:
1. HaikuVM does not support reflection.
2. HaikuVM uses the leJOS runtime. And this runtime has no implementation of ObjectOutputStream nor ObjectInputStream.
I only can think of a proprietary solution for HaikuVM (and a much weaker solution than serialisation support of a full blown JVM). The Memory Layout of HaikuVM Objects tries to mimic a C struct layout of a block of memory e.g. an object memory space. (In contrast a classic Java class typically doesn't.) The idea is to make the mapping to C as close as possible to simplify implementation and improve execution speed. (see http://haiku-vm.sourceforge.net/#[[Memory%20Layout%20of%20HaikuVM%20Objects]])
Last edit: genom2 2015-03-14