Deep cloning breaks with getters/setters
Closed this issue · 3 comments
ProjectMoon commented
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.
ProjectMoon commented
To make it even worse, there is no functionality internal to EveObject that will allow me to use the getters and setters.
ProjectMoon commented
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.
ProjectMoon commented
I think this is fixed.