groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul King (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (GROOVY-8371) JsonBuilder throws StackOverflow when using java.time.*
Date Wed, 01 Nov 2017 23:13:00 GMT

     [ https://issues.apache.org/jira/browse/GROOVY-8371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Paul King closed GROOVY-8371.
-----------------------------
    Resolution: Duplicate

> JsonBuilder throws StackOverflow when using java.time.*
> -------------------------------------------------------
>
>                 Key: GROOVY-8371
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8371
>             Project: Groovy
>          Issue Type: Bug
>          Components: JSON
>    Affects Versions: 2.4.12
>            Reporter: Eric Helgeson
>
> Running:
> {code:java}
> import groovy.json.JsonBuilder
> import java.time.*
> def localDate = LocalDate.now()
> JsonBuilder builder = new JsonBuilder()
> builder {
>     date localDate
> }
> builder.toString() // thrown here
> {code}
> Produces:
> {code:java}
> java.lang.StackOverflowError
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message