[ https://issues.apache.org/jira/browse/GROOVY-8064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Milles reassigned GROOVY-8064: ----------------------------------- Assignee: Eric Milles > Confusing error message when trying to access a property which is actually a > method > ----------------------------------------------------------------------------------- > > Key: GROOVY-8064 > URL: https://issues.apache.org/jira/browse/GROOVY-8064 > Project: Groovy > Issue Type: Improvement > Affects Versions: 2.4.8 > Reporter: Jochen Kemnade > Assignee: Eric Milles > Priority: Minor > > {code} > groovy:000> new File('/tmp').lastModified > ERROR groovy.lang.MissingPropertyException: > No such property: lastModified for class: java.io.File > Possible solutions: lastModified > {code} > {{lastModified}} is actually a method, so I should have used {{new > File('/tmp').lastModified()}} -- This message was sent by Atlassian Jira (v8.20.10#820010)