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

Eric Milles closed GROOVY-9279.
-------------------------------
    Resolution: Fixed

Closure delegate strategy set properly as part of GROOVY-9662 changes.

> StreamingJsonBuilder adding extra comma
> ---------------------------------------
>
>                 Key: GROOVY-9279
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9279
>             Project: Groovy
>          Issue Type: Bug
>          Components: JSON
>    Affects Versions: 2.5.7, 2.5.8
>            Reporter: Eric Helgeson
>            Priority: Major
>              Labels: grails
>             Fix For: 2.5.15
>
>
> This test passes in Groovy 2.5.6 - but not in 2.5.7/8:
> [https://github.com/grails/grails-core/blob/beafdce14d05f15abb18a079f9bb681f8761fe45/grails-plugin-rest/src/test/groovy/org/grails/plugins/web/rest/render/VndErrorRenderingSpec.groovy#L74-L109]
> Code where the error happens:
> [https://github.com/grails/grails-core/blob/7ab9e47ad805fbeb9433a488dd33f91bef44c0fa/grails-plugin-rest/src/main/groovy/grails/rest/render/errors/VndErrorJsonRenderer.groovy#L56-L75]
> The JSON produced includes an extra comma:
> {code:java}
>  
> ,"_links":{(,)"resource":{(,)"href":"http://localhost/books/1"}}},{"logref":"book.title.bad.1","message":"Title
>  
> Bad","path":"http://localhost/books/1","_links":{(,)"resource":{(,)"href":"ht 
> ,"_links":{(-)"resource":{(-)"href":"http://localhost/books/1"}}},{"logref":"book.title.bad.1","message":"Title
>  Bad","path":"http://localhost/books/1","_links":{(-)"resource":{(-)"href":"ht
> {code}
> To change the Groovy version for this project you can set it here - 
> [https://github.com/grails/grails-core/blob/master/build.gradle#L31]
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to