With respect to persistence, the PropertyDescriptor for "getMetaClass" should have the attribute value "transient" set. The Introspector generates this value if the method has been annotated as [Transient](https://docs.oracle.com/javase/8/docs/api/java/beans/Transient.html)). Because this value is currently missing, the Encoder tries to serialize the MetaClass information, which fails.
The groovy compiler should therefore annotate the "getMetaClass" method with the runtime annotation "java.beans.Transient".
This message was sent by Atlassian JIRA