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

this.class fails in static methods that return void

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.5
    • Fix Version/s: 1.6.6, 1.7-rc-1
    • Component/s: None
    • Labels:
      None

      Description

      class Foo {
      static foo()

      { println this.name }
      static void bar() { println this.name }

      }

      Foo.foo() // prints Foo
      Foo.bar() // fails with ClassCastException

        Attachments

          Activity

            People

            • Assignee:
              roshandawrani Roshan Dawrani
              Reporter:
              roshandawrani Roshan Dawrani
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: