ProjectMoon/eve2

Deep cloning breaks with getters/setters

Closed this issue · 3 comments

If an object is deep cloned, getter and setter fields will not be found by getFieldNames, causing a null pointer exception. Furthermore, the deepClone method does not have any support for getters and setters.

To make it even worse, there is no functionality internal to EveObject that will allow me to use the getters and setters.

Currently testing this as constrained by issue #103. Observations:

The null pointer exception actually happens because the object with the dynamic properties is not found in global as a field. It then tries to add null to the list of field names. Apparently, this is not related to whether or not it has a getter/setter.

I think this is fixed.