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

@TypeChecked does not recognize @Log annotation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0-beta-3
    • None
    • None

    Description

      @TypeChecked rejects code that uses the @Log annotation. It should not.

      This code does not compile but should:

      import groovy.util.logging.Log
      import groovy.transform.TypeChecked
      
      @Log
      class Example1 {
      
          @TypeChecked
          void method(String message) {
            log.info(message)
          }
      }
      

      Attachments

        Activity

          People

            melix Cédric Champeau
            hamletdrc Hamlet D'Arcy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: