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

wrong usage of _$st in interfaces

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.8-rc-3
    • 1.8-rc-4
    • None
    • None
    • wnidows xp
      java version "1.6.0_22"
      Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
      Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)

    Description

      Following code prints 1 or 2 from time to time I start it. Tried at http://groovyconsole.appspot.com. This code generates error there:
      java.lang.NoSuchFieldError: __$stMC
      at I1( or I2!!!!!!!!!!!!!!!!!!!!).<clinit>(Script1.groovy)
      at Script1.run(Script1.groovy:9)
      but error differs from time to time too.

      interface I1{
      int VALUE = 1
      }
      interface I2{
      int VALUE = 2
      }
      class C implements I1, I2{
      }
      println(new C().VALUE)

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: