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

Methods generated for Groovy properties do not carry over annotations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.4.15, 2.5.4
    • None
    • None

    Description

      Consider the following:

      class C {
        @Deprecated
        boolean condition
      }
      

      Methods isCondition, getCondition, setCondition that are added by Verifier.visitProperty do not have the java.lang.Deprecated annotation. The PropertyNode has a link to the FieldNode so deprecated can be checked for there. But the generated methods do not have this link.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              emilles Eric Milles
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: