Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.0.0
-
None
-
None
Description
my POJO includes a getter named "getSingleton" which return an instance of the same class, due to the way org.apache.shindig.common.JsonUtil.getGetters is buit this is causing an endless loop when trying to serialize the POJO into JSON. unfortunately the "getSingleton" getter is required by another interface, thus, i cannot simply rename it to overcome the naming convention issue.
my proposed solution would be to introduce a way to hint JsonUtil.getGetters to ignore the getter, perhaps a new annotation or a magic phrase in JsonProperty annotation.