jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • groovy
  • GROOVY-350

test multidimension arrays work properly

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.0-JSR-5
  • Component/s: None
  • Labels:
    None

Issue Links

is depended upon by

Task - A task that needs to be done. GROOVY-763 implement java parts

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
blackdrag blackdrag added a comment - 19/Dec/05 8:52 AM

it is now possible to define a mdim array by :

  • using lists of lists
    def a = [[1,2,3],[1,2,5]] as int[][]
    int[][] b = [[1,2,3],[1,2,5]]
  • using size expressions like in java
    def a = new int[2][3][]

the default initialization like in Java is not supported for any array expression

Show
blackdrag blackdrag added a comment - 19/Dec/05 8:52 AM it is now possible to define a mdim array by :
  • using lists of lists def a = [[1,2,3],[1,2,5]] as int[][] int[][] b = [[1,2,3],[1,2,5]]
  • using size expressions like in java def a = new int[2][3][]
the default initialization like in Java is not supported for any array expression

People

  • Assignee:
    blackdrag blackdrag
    Reporter:
    james strachan
Vote (1)
Watch (1)

Dates

  • Created:
    01/Apr/04 3:36 AM
    Updated:
    19/Dec/05 8:52 AM
    Resolved:
    19/Dec/05 8:52 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.