You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Christopher Smith (Jira)" <ji...@apache.org> on 2021/03/25 17:14:00 UTC

[jira] [Created] (GROOVY-10001) Generated getMetaClass should incorporate annotations

Christopher Smith created GROOVY-10001:
------------------------------------------

             Summary: Generated getMetaClass should incorporate annotations
                 Key: GROOVY-10001
                 URL: https://issues.apache.org/jira/browse/GROOVY-10001
             Project: Groovy
          Issue Type: Improvement
          Components: Compiler
    Affects Versions: 3.0.7
            Reporter: Christopher Smith


I'm trying to work around [an annoying AWS SDK bug|https://github.com/aws/aws-sdk-java-v2/issues/2348] by adding this to my trait:

{code:groovy}
@DynamoDbIgnore
abstract MetaClass getMetaClass()
{code}

I had hoped that this would get applied to the generated method, but in fact it didn't. It would be immensely useful for cases like this to be able to somehow apply annotations to the generated {{getMetaClass}} method, either by this hack or perhaps by annotating the class.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)