You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2022/01/14 11:33:28 UTC

[groovy] branch GROOVY_4_0_X updated: GROOVY-10449: Include public fields in the list of properties returned by MetaClassImpl#getProperties()

This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch GROOVY_4_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/GROOVY_4_0_X by this push:
     new 0ca772a  GROOVY-10449: Include public fields in the list of properties returned by MetaClassImpl#getProperties()
0ca772a is described below

commit 0ca772a7b944d85a00695ed2a751e78b37ab91c5
Author: Paul King <pa...@asert.com.au>
AuthorDate: Fri Jan 14 21:33:19 2022 +1000

    GROOVY-10449: Include public fields in the list of properties returned by MetaClassImpl#getProperties()
---
 .../src/main/groovy/groovy/console/ui/ObjectBrowser.groovy           | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/subprojects/groovy-console/src/main/groovy/groovy/console/ui/ObjectBrowser.groovy b/subprojects/groovy-console/src/main/groovy/groovy/console/ui/ObjectBrowser.groovy
index 2ac21c1..845d4ea 100644
--- a/subprojects/groovy-console/src/main/groovy/groovy/console/ui/ObjectBrowser.groovy
+++ b/subprojects/groovy-console/src/main/groovy/groovy/console/ui/ObjectBrowser.groovy
@@ -106,10 +106,9 @@ class ObjectBrowser {
                             }
                         }
                     }
-                    scrollPane(name: ' Public Fields and Properties ') {
+                    scrollPane(name: ' Properties (includes public fields) ') {
                         fieldTable = table {
-                            def data = Inspector.sort(inspector.publicFields.toList())
-                            data.addAll(Inspector.sort(inspector.propertyInfo.toList()))
+                            def data = Inspector.sort(inspector.propertyInfo.toList())
                             tableModel(list: data) {
                                 closureColumn(header: 'Name', read: { it[MEMBER_NAME_IDX] })
                                 closureColumn(header: 'Value', read: { it[MEMBER_VALUE_IDX] })