We use DomainClassArtefactHandler.isDomainClass() in our plugin, it statred returning false just for fome records after upgrading Grails from 3.2.6 to 3.2.11.
Further analysis proved that it works on 3.2.9, it stops working on 3.2.10.
Debugging we found the following:
I know I should add a test case but I'm currently handling a peak of work I won't be able to do it soon, sorry for that. I hope this is better than nothing.
Expected Behaviour
DomainClassArtefactHandler.isDomainClass() should return true for all objects in the resultset.
Actual Behaviour
DomainClassArtefactHandler.isDomainClass() returns false for some objects in the resultset. Such objects are of a different class (as seen in the picture above). After a quick chat with james.kleeh on slack I understood they should be proxyes.
Environment Information
Operating System: Linux Fedora 25
Grails Version: 3.2.11 (it works on 3.2.9, it stops working on 3.2.10)
We use
DomainClassArtefactHandler.isDomainClass()
in our plugin, it statred returningfalse
just for fome records after upgrading Grails from3.2.6
to3.2.11
.Further analysis proved that it works on 3.2.9, it stops working on 3.2.10.
Debugging we found the following:
I know I should add a test case but I'm currently handling a peak of work I won't be able to do it soon, sorry for that. I hope this is better than nothing.
Expected Behaviour
DomainClassArtefactHandler.isDomainClass()
should returntrue
for all objects in the resultset.Actual Behaviour
DomainClassArtefactHandler.isDomainClass()
returnsfalse
for some objects in the resultset. Such objects are of a different class (as seen in the picture above). After a quick chat with james.kleeh on slack I understood they should be proxyes.Environment Information