[ https://issues.apache.org/jira/browse/GROOVY-6974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pascal Schumacher closed GROOVY-6974. ------------------------------------- Resolution: Won't Fix I'm closing this as it's breaking change and discussion on the mailing list http://mail-archives.apache.org/mod_mbox/incubator-groovy-dev/201507.mbox/%3C55AB5DDE.2000606%40gmx.net%3E favored the current behavior. > Path.size() should return 0 instead of throwing NoSuchFileException > ------------------------------------------------------------------- > > Key: GROOVY-6974 > URL: https://issues.apache.org/jira/browse/GROOVY-6974 > Project: Groovy > Issue Type: Improvement > Components: groovy-runtime > Affects Versions: 2.3.4 > Reporter: paolo di tommaso > > The method ResourceGroovyMethods#size(Path) should behave like the equivalent > File#length() and ResourceGroovyMethods#size(File) methods. > Thus it should return 0 when the target file does not exist instead of > throwing NoSuchFileException. > See https://github.com/groovy/groovy-core/pull/496 -- This message was sent by Atlassian JIRA (v6.3.4#6332)