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

Cannot create two lists of length 1000

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.7
    • 2.4.2
    • Compiler

    Description

      When I create two lists with length >= 1000, I get ClassFormatError.

      Repro:

      aaudibert-mbp% python -c 'print "def a = " + str([0]*1000) + "\n" + "def b = " + str(range(-1, 999)) + "\n"' > t.groovy
      aaudibert-mbp% groovy t.groovy
      Caught: java.lang.ClassFormatError: Duplicate method name&signature in class file t
      java.lang.ClassFormatError: Duplicate method name&signature in class file t
      zsh: exit 1     groovy t.groovy
      aaudibert-mbp% groovy -version
      Groovy Version: 2.3.7 JVM: 1.7.0_67 Vendor: Oracle Corporation OS: Mac OS X
      

      ClassFormatError? o.O

      If either list has length less than 1000, this doesn't happen. Is Groovy doing something weird when lists have length >= 1000?

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            aaudibert Andrew Audibert
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: