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

Incorrect error message when accessing non existing class in static member: IncompatibleClassChangeError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0
    • 1.5
    • None
    • None

    Description

      The follow code in file bug.groovy:

      class Foo
      {
      static bla = Fii.class
      }

      new Foo()

      Causes:

      Caught: java.lang.IncompatibleClassChangeError
      at Foo.<clinit>(bug.groovy)
      at bug.class$(bug.groovy)
      at bug.run(bug.groovy:6)
      at bug.main(bug.groovy)

      (There's no class Fii anywhere on my path.)

      Seems to be a variation of GROOVY-801

      Attachments

        Activity

          People

            Unassigned Unassigned
            mguillemot@yahoo.fr Marc Guillemot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: