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

Missing @Generated annotation on @Vetoable

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.6
    • 3.0.0-beta-1, 2.5.7
    • Compiler
    • None

    Description

      jacoco is reporting incorrect code coverage results for @Vetoable annotated classes. 

      The generated

      • set*
      • fireVetoablePropertyChange
      • removeVetoablePropertyChangeListener,
      • addVetoablePropertyChangeListener
      • getVetoablePropertyChangeListener

      methods should probably be annotated with @Generated

      In the examples below 11 methods that are detected as not covered.
      http://docs.groovy-lang.org/2.5.6/html/gapi/groovy/beans/Vetoable.html

       @groovy.beans.Vetoable
       class Person {
           String firstName
           def zipCode
       }
      

      This bug was found during Hackergarten Zürich

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment