timbonicus opened a new issue, #14630:
URL: https://github.com/apache/grails-core/issues/14630

   Converting a Grails 2 project to Grails 3, we ran into an issue with some 
wrapper classes that use the @Delegate Groovy annotation with a GORM domain 
object:
   ```
   Can't have an abstract method in a non-abstract class. The class 
'test.delegate.annotation.TestWrapper' must be declared abstract or the method 
'boolean org_grails_datastore_gorm_GormValidateable__skipValidate$get()' must 
be implemented.
    @ line 3, column 1.
   ```
   I worked around it by having the wrapper implement GormValidateable, 
DirtyCheckable, and Validateable. I'm not sure if this is the best solution. I 
found [GROOVY-7288](https://issues.apache.org/jira/browse/GROOVY-7288) that 
looks like the same issue. Maybe it's a Groovy bug?
   
   Here's a test project that reproduces the issue:
   
[test-delegate-annotation.zip](https://github.com/grails/grails-data-mapping/files/725334/test-delegate-annotation.zip)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to