Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
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 :
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
| This issue is depended upon by: | ||||
| GROOVY-855 | Serializable GString? |
|
|
|
FYI, this duplicates the earlier submitted
GROOVY-855GROOVY-855