You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2017/07/14 18:37:00 UTC

[jira] [Commented] (GROOVY-8256) Regression in handling of properties of objects that implement the Map interface

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

Paul King commented on GROOVY-8256:
-----------------------------------

I believe this is related to GROOVY-8074 which was deemed a bug since the dynamic version of Groovy has always had the same behavior whereas the @CompileStatic version had a different behavior.

> Regression in handling of properties of objects that implement the Map interface
> --------------------------------------------------------------------------------
>
>                 Key: GROOVY-8256
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8256
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.4.12
>            Reporter: Graeme Rocher
>
> When upgrading to Groovy 2.4.12 there appears to be a regression in the handling of objects that implement the Map interface that also have getters. I had to make the following changes to GORM:
> https://github.com/grails/grails-data-mapping/commit/968ae39a54aea239943f74b4b5111fb106fb0bc4
> The HttpHeaders headers object implements Map https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/http/HttpHeaders.html
> In earlier Groovy versions the getContentType method was resolved when doing {{headers.contentType}}. In 2.4.12 the Maps {{get(..)}} method is resolved.
> This is a breaking change and shouldn't be in a 2.4.x release. 



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