dezbyte / multiverse

Automatically exported from code.google.com/p/multiverse
Other
0 stars 0 forks source link

Instrumentation: Runtime known TmEntity fields #83

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In some cases it is not known until runtime wat the type of an object
stored in a field is:

@TmEntity
class A{
   Object o;
}

@TmEntity
class B{
}

It could be that o is of class Integer for example, but it could also be
that o is of class B. If it is of class B, it should be persisted in the
stm as well.

So some extra conditional logic needs to be executed. See the
ExampleStackNode for an example of this polymorphic behavior.

- this needs to be done in the entity.constructor
- this needs to be done in the entity.walkMembers method
- this needs to be done in the entity.isDirty method.
- this needs to be done in the dematerialized.constructor

Original issue reported on code.google.com by alarmnum...@gmail.com on 19 May 2009 at 4:58

GoogleCodeExporter commented 8 years ago
Not an issue anymore

Original comment by alarmnum...@gmail.com on 5 Sep 2009 at 8:37