Migration to Grails 3.1.8 - error using @Delegate

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Migration to Grails 3.1.8 - error using @Delegate

This post has NOT been accepted by the mailing list yet.
This post was updated on .

I'm trying to migrate my project from Grails 2.4.4 to 3.1.8, but I see many errors when I build my project using gradle.

Can't have an abstract method in a non-abstract class. The class 'XXX' must be declared abstract or the method 'java.util.Map org_grails_datastore_mapping_dirty_checking_DirtyCheckable__$changedProperties$get()' must be implemented.

It's because I use @Delegate annotation in my Command on domain object. When I delete @Delegate annotation, application builded without errors, but code doesn't work (because lack of @Delegate).

The same problem is here: http://stackoverflow.com/questions/34638422/grails-3-delegate-notation-using-a-domain-object

Any ideas?