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

VerifyError related to byte arrays

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.1
    • 1.8.2, 1.9-beta-3
    • None
    • None

    Description

      ~ $ groovy --version
      Groovy Version: 1.8.1 JVM: 1.6.0_26
      ~ $ groovy -e "i = new int[42];println i[0];"
      0
      ~ $ groovy -e "int[] i = new int[42];println i[0];"
      0
      ~ $ groovy -e "b = new byte[42]; println b[0];"
      0
      ~ $ groovy -e "byte[] b = new byte[42]; println b[0];"
      Caught: java.lang.VerifyError: (class: script_from_command_line, method: run signature: ()Ljava/lang/Object;) Incompatible argument to function
      java.lang.VerifyError: (class: script_from_command_line, method: run signature: ()Ljava/lang/Object;) Incompatible argument to function
      

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            brownj Jeff Brown
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: