You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (Jira)" <ji...@apache.org> on 2026/10/20 01:28:02 UTC
[jira] [Closed] (GROOVY-11779) Object#dump should consider properties when fields are not accessible
[ https://issues.apache.org/jira/browse/GROOVY-11779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King closed GROOVY-11779.
------------------------------
> 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)