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

@TypeChecked$TypeCheckingInfo is added to constructors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.6, 2.1.0-rc-2
    • 2.1.0-rc-3, 2.0.7
    • Compiler
    • None

    Description

      class Test {
      
         @groovy.transform.TypeChecked
         Test() {}
      }
      

      leads to the following compilation error:

      Annotation @groovy.transform.TypeChecked$TypeCheckingInfo is not allowed on element CONSTRUCTOR

      The TypeChecked$TypeCheckingInfo annotation must only be applied on methods.

      Attachments

        Activity

          People

            melix Cédric Champeau
            andre.steingress Andre Steingress
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: