Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-5036

Date and Calendar JSON serialization yields stackoverflow errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.2, 1.9-beta-3
    • 1.8.3, 1.9-beta-4
    • None
    • None

    Description

      Date and Calendar contain references to themselves, and the standard object properties serialization logic tries to serialize an infinite chains of such references, yielding a stack overflow error.

      The idea is to serialize those dates and calendars into ISO-8601 compliant date strings, that are also parseable from JavaScript with Date.parse(...).

      Attachments

        Activity

          People

            guillaume Guillaume Sauthier
            guillaume Guillaume Sauthier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: