groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pascal Schumacher (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (GROOVY-7438) @ToString(includeSuperProperties = true) does not work
Date Sun, 05 Jul 2015 14:06:04 GMT

     [ https://issues.apache.org/jira/browse/GROOVY-7438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pascal Schumacher closed GROOVY-7438.
-------------------------------------
    Resolution: Cannot Reproduce

I'm closing this because Paul could not reproduce and we got no feedback from Christopher
Smith.

> @ToString(includeSuperProperties = true) does not work
> ------------------------------------------------------
>
>                 Key: GROOVY-7438
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7438
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.4.3
>            Reporter: Christopher Smith
>            Priority: Minor
>
> The annotation option added as a resolution to GROOVY-7161 does not work for me. I've
tried numerous combinations of options on both the superclass and the subclass and only ever
see properties from the subclass (or the entire {{super}} block).
> {code}
> @ToString(includePackage = false, includeNames = true)
> @CompileStatic
> abstract class UploadPermission implements Serializable {
>     private static final long serialVersionUID = 1L
>     @Id
>     String id
>     @Indexed
>     @NotEmpty
>     String uploader
>     @Indexed
>     @NotEmpty
>     String target
> }
> {code}
> {code}
> @ToString(includePackage = false, includeNames = true, includeSuperProperties = true)
> @CompileStatic
> class DigitizerOnboardPermission extends UploadPermission {
>     boolean createdAccount
> }
> {code}
> Output:
> {code}
> DigitizerOnboardPermission(createdAccount:false)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message