You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@amondel2 I actually get an error starting a Grails 5.3.5 project (with JDK 8) with the radmonDomain and GenericDomainObject Domain Objects defined as you have them above.
Error during @ToString processing: 'includes' property 'id' does not exist.
@ line 7, column 1.
@ToString(includeNames=true,includes='id,dueDate')
And I got the same error when trying to run a Grails 6.1.2 project (with JDK 11) with the radmonDomain and GenericDomainObject Domain Objects defined as you have them above.
To fix the error, you can modify the @ToString annotation in your radmonDomain class to include the includeSuperProperties=true attribute. This tells Groovy to also consider properties from superclasses when generating the toString() method.
@ToString(includeNames=true, includes='id,dueDate', includeSuperProperties=true)
classradmonDomainextendsGenericDomainObject {
Date dueDate
}
Expected Behavior
I have the following radmonDomain in my Domain Objects and GenericDomainObject in src/groovy above in Grails 6.1.2 this worked and the code compiled
Actual Behaviour
After upgrading to Grails 6.2.0 I get the following error during complieGroovy step
Error during @tostring processing: 'includes' property 'id' does not exist.
@ line 8, column 1.
@tostring(includeNames=true,includes='id,dueDate')
^
Steps To Reproduce
No response
Environment Information
OS: Linux
Java: JDK 17
Example Application
No response
Version
6.2.0
The text was updated successfully, but these errors were encountered: