You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Stephan Classen (JIRA)" <ji...@apache.org> on 2019/05/20 10:00:00 UTC

[jira] [Created] (GROOVY-9125) Static block is not annotateable with @Generated

Stephan Classen created GROOVY-9125:
---------------------------------------

             Summary: Static block is not annotateable with @Generated
                 Key: GROOVY-9125
                 URL: https://issues.apache.org/jira/browse/GROOVY-9125
             Project: Groovy
          Issue Type: Bug
            Reporter: Stephan Classen


The {{groovy.transform.Sortable}} annotation generates a static block
{code:java}
    static {
        Object var0 = $getCallSiteArray()[5].callConstructor(GroovySortableClassTarget.FirstComparator.class);
        this$FirstComparator = (Comparator)ScriptBytecodeAdapter.castToType(var0, Comparator.class);
        Object var1 = $getCallSiteArray()[6].callConstructor(GroovySortableClassTarget.LastComparator.class);
        this$LastComparator = (Comparator)ScriptBytecodeAdapter.castToType(var1, Comparator.class);
        Object var2 = $getCallSiteArray()[7].callConstructor(GroovySortableClassTarget.BornComparator.class);
        this$BornComparator = (Comparator)ScriptBytecodeAdapter.castToType(var2, Comparator.class);
    }
{code}

This static block is shown by jacoco as not covered with test.

See also GROOVY-9050



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)