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

this.class fails to compile in a static context

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.6.5, 1.7-beta-2
    • None
    • None

    Description

      the code

      static foo() {
        this.class
      }

      does not compile. It is supposed to return Class. A test is absolutely needed too.

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            blackdrag Jochen Theodorou
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: