[ 
https://issues.apache.org/jira/browse/GROOVY-9050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vadimo updated GROOVY-9050:
---------------------------
    Description: 
jacoco is reporting incorrect code coverage results for @Sortable annotated 
classes. 

The generated internal classes should probably be annotated with @generated as 
well as their default constructor.

For the example from 6 methods are detected as not covered.
[http://docs.groovy-lang.org/2.5.6/html/gapi/groovy/transform/Sortable.html]
{code:java}
 @Sortable class Person {
     String first
     String last
     Integer born
 }
{code}


This bug was found during Hackergarten Zürich 

  was:
jacoco is reporting incorrect code coverage results for @Sortable annotated 
classes. 

The generated internal classes should probably be annotated with @generated as 
well as their default constructor.

For the example from 6 methods are detected as not covered.
[http://docs.groovy-lang.org/2.5.6/html/gapi/groovy/transform/Sortable.html]
{code:java}
 @Sortable class Person {
     String first
     String last
     Integer born
 }
{code}


> Missing @Generated annotation in @Sortable 
> -------------------------------------------
>
>                 Key: GROOVY-9050
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9050
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: 2.5.6
>            Reporter: Vadimo
>            Priority: Minor
>
> jacoco is reporting incorrect code coverage results for @Sortable annotated 
> classes. 
> The generated internal classes should probably be annotated with @generated 
> as well as their default constructor.
> For the example from 6 methods are detected as not covered.
> [http://docs.groovy-lang.org/2.5.6/html/gapi/groovy/transform/Sortable.html]
> {code:java}
>  @Sortable class Person {
>      String first
>      String last
>      Integer born
>  }
> {code}
> This bug was found during Hackergarten Zürich 



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

Reply via email to