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

@TypeChecked$TypeCheckingInfo is added to constructors

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.6, 2.1.0-rc-2
    • Fix Version/s: 2.1.0-rc-3, 2.0.7
    • Component/s: Compiler
    • Labels:
      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

            • Assignee:
              melix C├ędric Champeau
              Reporter:
              andre.steingress Andre Steingress
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: