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

Eric Milles resolved GROOVY-8064.
---------------------------------
    Fix Version/s: 5.0.0-alpha-3
       Resolution: Fixed

https://github.com/apache/groovy/commit/3a5a0399cffa2ef4840e2b79e331081fb9266fb6

> 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
>             Fix For: 5.0.0-alpha-3
>
>
> {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)

Reply via email to