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

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

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

> "Possible solutions" message is confusing because it doesn't reflect whether 
> a property is read-only or write-only
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-6260
>                 URL: https://issues.apache.org/jira/browse/GROOVY-6260
>             Project: Groovy
>          Issue Type: Improvement
>          Components: groovy-runtime
>    Affects Versions: 2.1.6
>            Reporter: Graeme Rocher
>            Assignee: Eric Milles
>            Priority: Major
>             Fix For: 5.0.0-alpha-3
>
>
> Consider this:
> {code}
> class Foo {
>   void setBar(String bar) {}
> }
> foo = new Foo()
> println foo.bar
> {code}
> The message is 
> {code}
> groovy.lang.MissingPropertyException: No such property: bar for class: Foo
> Possible solutions: bar
> {code}
> This is extremely confusing to users and I suggest that the message be 
> changed to reflect that the property is write-only to avoid confusion



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to