[
https://issues.apache.org/jira/browse/GROOVY-10449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King updated GROOVY-10449:
-------------------------------
Description: This is a clone of GROOVY-5169 for documenting the breaking
change - since this impacts outside the JSON aspects of the original issue.
(was: Consider the attached Groovy script. It defines two classes. Each has
public properties explicitly defined. When I send the resulting objects to
JsonOutput.toJson(), I expect the public properties of the object to be
serialized into the JSON output. This is not working as expected. The only
properties that get serialized are those created via "def propName" and those
that seem to have getter methods (this in not actually the case).
Attached is a screenshot of GroovyConsole running the attached script.)
> Include public fields in the list of properties returned by
> MetaClassImpl#getProperties()
> -----------------------------------------------------------------------------------------
>
> Key: GROOVY-10449
> URL: https://issues.apache.org/jira/browse/GROOVY-10449
> Project: Groovy
> Issue Type: Bug
> Reporter: James Sumners
> Assignee: Paul King
> Priority: Minor
> Labels: breaking
> Fix For: 4.0.0-rc-3
>
>
> This is a clone of GROOVY-5169 for documenting the breaking change - since
> this impacts outside the JSON aspects of the original issue.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)