Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-9050

Missing @Generated annotation in @Sortable

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.6
    • Fix Version/s: 3.0.0-beta-1, 2.5.7
    • Component/s: Compiler
    • Labels:
      None

      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

       @Sortable class Person {
           String first
           String last
           Integer born
       }
      

      This bug was found during Hackergarten Zürich

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                paulk Paul King
                Reporter:
                vadimbauer Vadimo
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: