Groovy
  1. Groovy
  2. GROOVY-3831

Expecting to find object/array on stack

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.5, 1.6, 1.6.4, 1.6.5
    • Fix Version/s: 1.6.6, 1.7-rc-1
    • Component/s: None
    • Labels:
      None

      Description

      Repro:
      Compile and run the following:

      class Test
      {
              String string
              URI[] uris
      
              public Test(String string, URI[] uris)
              {
                      this.string = string
                      this.uris = uris
              }
      
              public Test(String string, List uris)
              {
                      this(string, uris.collect { new URI(it) } as URI[])
              }
      
              public static void main(String[] args)
              {
                      def test = new Test('hello', ["world"])
                      println test.string
                      println test.strings
              }
      }

      Observed Result:

      $ groovyc Test.groovy
      $ groovy Test
      Caught: java.lang.VerifyError: (class: Test, method: <init> signature: (Ljava/lang/String;Ljava/util/List;)V) Expecting to find object/array on stack

      Expected Result:

      hello
      [world]
      
      1. Test.groovy
        0.4 kB
        sukhyun.cho

        Activity

        sukhyun.cho created issue -
        Roshan Dawrani made changes -
        Field Original Value New Value
        Assignee Roshan Dawrani [ roshandawrani ]
        Roshan Dawrani made changes -
        Fix Version/s 1.7-rc-1 [ 14666 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.6.6 [ 15781 ]
        Resolution Fixed [ 1 ]
        Paul King made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12732798 ] Default workflow, editable Closed status [ 12744658 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12970561 ] Default workflow, editable Closed status [ 12978320 ]

          People

          • Assignee:
            Roshan Dawrani
            Reporter:
            sukhyun.cho
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development