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

GString should be serializable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5, 1.5.1
    • 1.5.2
    • None
    • None

    Description

      Currently GString is not serializable so if you place a GString into a distributed cache or session which is replicated you get an NotSerializableException which forces you to write code like this:

      session.setAttribute("foo", "hello $var".toString())

      To explicitly convert to a String beforehand. GString should implement Serializable such that it calls toString() and writes the String out

      Attachments

        Issue Links

          Activity

            People

              ait Alex Tkachman
              graemerocher Graeme Rocher
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: