Uploaded image for project: 'Shindig'
  1. Shindig
  2. SHINDIG-1424

endless loop while encoding POJOs to JSON

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.0
    • None
    • Java
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tomer.doron@gmail.com tomer doron
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: