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

Problem accessing static fields

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-10
    • 1.0-JSR-4
    • None
    • None

    Description

      This code:

      class A {
      static x
      }

      A.x = new Integer(10)

      fails with:

      Caught: java.lang.NoSuchFieldException: x

      I've also had trouble accessed static fields of Java classes.

      Attachments

        Issue Links

          Activity

            People

              phkim Kim, Pilho
              mcspanky Martin C. Martin
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: