You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2022/01/04 20:25:00 UTC
[jira] [Updated] (GROOVY-8371) JsonBuilder throws StackOverflow when using java.time.*
[ https://issues.apache.org/jira/browse/GROOVY-8371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Milles updated GROOVY-8371:
--------------------------------
Labels: StackOverflowError (was: )
> 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
> Priority: Trivial
> Labels: StackOverflowError
>
> 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
(v8.20.1#820001)