[ 
https://issues.apache.org/jira/browse/GROOVY-8065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15839697#comment-15839697
 ] 

ASF GitHub Bot commented on GROOVY-8065:
----------------------------------------

GitHub user paulk-asert opened a pull request:

    https://github.com/apache/groovy/pull/480

    GROOVY-8065: Map created as org.springframework.http.HttpHeaders is e…

    …mpty in 2.4.8, works fine in 2.4.7

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/paulk-asert/groovy groovy8065

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/groovy/pull/480.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #480
    
----
commit 6ff8ae172dc7f67fe23911970115f27f0db42106
Author: paulk <[email protected]>
Date:   2017-01-26T13:51:32Z

    GROOVY-8065: Map created as org.springframework.http.HttpHeaders is empty 
in 2.4.8, works fine in 2.4.7

----


> Map created as org.springframework.http.HttpHeaders is empty in 2.4.8, works 
> fine in 2.4.7
> ------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-8065
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8065
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.4.8
>         Environment: Java 1.8.0_102
> OS X 10.10.5
>            Reporter: Andy Wilkinson
>
> There appears to be a regression in Groovy 2.4.8 that causes it to silently 
> create an empty map when it's asked to create it as an instance of Spring 
> Framework's {{HttpHeaders}}.
> Here's a minimal reproduction:
> {noformat}
> @Grab("org.springframework:spring-web:4.3.5.RELEASE")
> import org.springframework.http.HttpHeaders
> def headers = ['Content-Type'       : 'application.json',
>                'Content-Disposition': 'test.zip'] as HttpHeaders
> println headers
> {noformat}
> It works as expected with 2.4.7:
> {noformat}
> $ sdk use groovy 2.4.7 && groovy asHttpHeaders.groovy
> Using groovy version 2.4.7 in this shell.
> [Content-Type:[application.json], Content-Disposition:[test.zip]]
> {noformat}
> With 2.4.8 the map is empty:
> {noformat}
> $ sdk use groovy 2.4.8 && groovy asHttpHeaders.groovy
> Using groovy version 2.4.8 in this shell.
> [:]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to