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

@CompileStatic(SKIP) does not work for constructors

    XMLWordPrintableJSON

    Details

      Description

      This fails:

      @CompileStatic
      class Test {
          @CompileStatic(TypeCheckingMode.SKIP)
          private Test() {
              foobar()
          }
      }
      

      This passes:

      @CompileStatic
      class Test<T> {
          private Test() {
              baz()
          }
      
          @CompileStatic(TypeCheckingMode.SKIP)
          private baz() { 
              foobar() 
          }
      }
      

        Attachments

          Activity

            People

            • Assignee:
              melix C├ędric Champeau
              Reporter:
              ddimitrov Dimitar Dimitrov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: