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

[jira] [Updated] (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:all-tabpanel ]

Graeme Rocher updated GROOVY-8256:
----------------------------------
    Description: 
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. 

  was:
When upgrading to Groovy 2.4.12 there appears to be a regression in the handling of objects that implement the Map interface and also 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. 


> 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)