You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "John Wagenleitner (JIRA)" <ji...@apache.org> on 2018/05/27 19:10:00 UTC

[jira] [Assigned] (GROOVY-8610) STC NPE using DGM collect on Iterator

     [ https://issues.apache.org/jira/browse/GROOVY-8610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Wagenleitner reassigned GROOVY-8610:
-----------------------------------------

    Assignee: John Wagenleitner

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