groovy

GString should be serializable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.5, 1.5.1
  • Fix Version/s: 1.5.2
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

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

Issue Links

Activity

Hide
David Smiley added a comment -

FYI, this duplicates the earlier submitted GROOVY-855

Show
David Smiley added a comment - FYI, this duplicates the earlier submitted GROOVY-855
Hide
Paul King added a comment -

close off release 1.5.4

Show
Paul King added a comment - close off release 1.5.4

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: