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

invalid class file generated when property and field name overlap

    XMLWordPrintableJSON

Details

    Description

      on behalf of tug:

      class ExplicitThisTest extends GroovyTestCase {
      @Property zero = 0
      def zero = 0

      void testZero()

      { assert 0 == zero assert 0 == this.zero assert 0 == this.@zero }

      }

      produces:

      Caught: java.lang.ClassFormatError: ExplicitThisTest (Repetitive
      field name/signature)
      java.lang.ClassFormatError: ExplicitThisTest (Repetitive field name/
      signature)

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            codevise Dierk König
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: