[
https://issues.apache.org/jira/browse/GROOVY-6260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles reassigned GROOVY-6260:
-----------------------------------
Assignee: Eric Milles
> "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
>
> 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)