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 2021/03/10 15:47:00 UTC

[jira] [Commented] (GROOVY-9976) List.empty works, but Map.empty does not

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

Eric Milles commented on GROOVY-9976:
-------------------------------------

This is discussed here and in some earlier issues as well: https://issues.apache.org/jira/browse/GROOVY-9768?focusedCommentId=17206294&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17206294

Map types get special treatment for property lookup.  I tried to indicate this in the IDE (see coloration difference in your screenshot) to help identify cases where the property is not resolved to an accessor.

> List.empty works, but Map.empty does not
> ----------------------------------------
>
>                 Key: GROOVY-9976
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9976
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.5.12
>            Reporter: Vytenis Bivainis
>            Priority: Major
>         Attachments: image-2021-03-10-10-59-53-969.png
>
>
> !image-2021-03-10-10-59-53-969.png!
> That's totally unexpected.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)