groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GROOVY-8610) STC NPE using DGM collect on Iterator
Date Sun, 27 May 2018 19:16:00 GMT

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

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

GitHub user jwagenleitner opened a pull request:

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

    GROOVY-8610: STC NPE using DGM collect on Iterator

    

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

    $ git pull https://github.com/jwagenleitner/groovy 8610-stc-collect-iterator

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

    https://github.com/apache/groovy/pull/729.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 #729
    
----
commit 137f87a3809e3d8d8f572b07f464237f3277b0b2
Author: John Wagenleitner <jwagenleitner@...>
Date:   2018-05-27T19:10:59Z

    GROOVY-8610: STC NPE using DGM collect on Iterator

----


> STC NPE using DGM collect on Iterator
> -------------------------------------
>
>                 Key: GROOVY-8610
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8610
>             Project: Groovy
>          Issue Type: Bug
>          Components: Static Type Checker
>    Affects Versions: 2.5.0
>            Reporter: John Wagenleitner
>            Assignee: John Wagenleitner
>            Priority: Major
>
> {code:groovy}
> @groovy.transform.TypeChecked
> def m() {
>     List<String> list = ['foo', 'bar', 'baz']
>     list.iterator().collect { it.startsWith('ba') } == [false, true, true]
> }
> m()
> {code}
> Results in: 
> {code:java}
> BUG! exception in phase 'instruction selection' in source unit 'TestScript.groovy' unexpected
NullpointerException
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message