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

Multi-D arrays don't work with custom classes as base element

    XMLWordPrintableJSON

Details

    Description

      The multidimensional arrays work perfectly with primitive types and standard classes from the JDK (or from libraries too I guess), but it seems there's a problem if you're using a class defined in the same source unit. So for instance, the following code will fail:

      groovy> class Foo {}
      groovy> ff = new Foo[3][4]
      groovy> go
      Caught: java.lang.ClassFormatError: CommandLine (Illegal Class name "Foo[][]")

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            guillaume Guillaume Sauthier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: