[ https://issues.apache.org/jira/browse/GROOVY-7552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14944867#comment-14944867 ]
Pascal Schumacher commented on GROOVY-7552: ------------------------------------------- Well maybe the output is just misleading. Can you create a new patch and upload it with a different filename? The patch I see as attachment is still from "Date: Wed, 19 Aug 2015 14:19:16 +0200" and the content is identical to the pull request. > add org.codehaus.groovy.runtime.DefaultGroovyMethods.isEmpty(Iterable) > ---------------------------------------------------------------------- > > Key: GROOVY-7552 > URL: https://issues.apache.org/jira/browse/GROOVY-7552 > Project: Groovy > Issue Type: Improvement > Components: groovy-jdk > Affects Versions: 2.4.5 > Reporter: Jochen Kemnade > Priority: Minor > Labels: patch-available > Attachments: > 0001-add-org.codehaus.groovy.runtime.DefaultGroovyMethods.patch > > > {code} > def items = [1] > def iterable = { [ hasNext:{ !items.isEmpty() }, next:{ items.pop() } ] as > Iterator } as Iterable > assert !iterable.isEmpty() > iterable.next() > assert iterable.isEmpty() > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)