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

IncompatibleClassChangeError is thrown when an arg is assigned a default value from a static constant of another class.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.0-JSR-6
    • 1.0-JSR-6
    • class generator
    • None
    • Groovy Version: 1.0-RC-01-SNAPSHOT JVM: 1.5.0_06-b05

    Description

      class Something {
      static int VALUE = 10
      }

      class AnotherThing {
      def method(somearg=Something.VALUE) { }
      }

      The above throws an IncompatibleClassChangeError.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: