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

SC: static choice of Class vs Object extension for Type dot name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.7
    • None
    • None

    Description

      Consider the following:

      @groovy.transform.CompileStatic
      void test() {
        String.getMetaClass() // should refer to getMetaClass(Class)
        String.metaClass {}   // should refer to metaClass(Class,Closure)
        String.isCase(null)   // should refer to isCase(Class)
      }
      

      Static compiler is writing direct invoke of Object (or CharSequence for isCase) variants of examples above.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: