Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.1.0-rc-1
-
None
-
> groovy --version
Groovy Version: 2.1.0-rc-1 JVM: 1.7.0_09 Vendor: Oracle Corporation OS: Windows 7
Description
When JsonBuilder is constructed with an Expando parameter, the toString() method fails with a StackOverflowError. A partial workaround is to convert to use Expando.getProperties() to convert the Expando into a Map, but this fails for any nested Expandos.
Example code & output are attached.
Alan Thompson