[
https://issues.apache.org/jira/browse/GROOVY-11779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles updated GROOVY-11779:
---------------------------------
Fix Version/s: 6.0.0-alpha-1
> Object#dump should consider properties when fields are not accessible
> ---------------------------------------------------------------------
>
> Key: GROOVY-11779
> URL: https://issues.apache.org/jira/browse/GROOVY-11779
> Project: Groovy
> Issue Type: Bug
> Affects Versions: 5.0.1
> Reporter: Björn Kautler
> Assignee: Eric Milles
> Priority: Major
> Fix For: 6.0.0-alpha-1
>
>
> Given this snippet:
> {code:groovy}
> class Person {
> String name
> int age
> }
> new Person(age: 18, name: 'Foo').dump()
> {code}
> With Groovy 4 this returns the expected {{<Person@689851fa name=Foo age=18>}}.
> With Groovy 5 you get {{<Person@3d0b9ee6 name=inaccessible
> age=inaccessible>}}.
> It would be nice if also with Groovy 5 you would get the proper information,
> especially when the fields are exposed as properties.
> The Spock power assertion output got way less helpful with just
> {{inaccessible}} there.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)