Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 361857

Summary: Can't assign values to multidimensional arrays
Product: z_Archived Reporter: Joseph Vincens <jvincens>
Component: EDTAssignee: Yun Feng Ma <mayunf>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: greer, hjiyong, jqian
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
testcase
none
Patch
none
Patch lasher: iplog+

Description Joseph Vincens CLA 2011-10-24 15:26:37 EDT
using the attached I expect to see:
value[1][1]:index11
value[1][2]:index12
value[1][3]:index13
value[2][1]:index21
value[2][2]:index22
value[2][3]:index23
but there is no output
Comment 1 Joseph Vincens CLA 2011-10-24 15:28:00 EDT
Created attachment 205863 [details]
testcase
Comment 2 Scott Greer CLA 2011-10-31 10:02:32 EDT
Ji Yong,

Check with Jeff on whether Java gen properly supports multi-dimensional arrays and if so, ask for which template(s) are involved.
Comment 3 Yun Feng Ma CLA 2011-11-03 02:03:32 EDT
Created attachment 206379 [details]
Patch

Here is a patch.
Comment 4 Huang Ji Yong CLA 2011-11-03 02:37:24 EDT
Hi Yunfeng,
This patch cannot pass this test case (the same as 362507)

    myNames string[] =["Carolina", "State", "Duke"];
    element string = "Meredith";
    newList string[];
    function start()
        newList = myNames :: element;  
    end
Please review.
(In reply to comment #3)
> Created attachment 206379 [details]
> Patch
> 
> Here is a patch.
Comment 5 Yun Feng Ma CLA 2011-11-03 05:23:07 EDT
Created attachment 206387 [details]
Patch

Another patch.
Comment 6 Yun Feng Ma CLA 2011-11-04 01:58:35 EDT
Fixed, the root cause is that the multidimensional arrays are not initialized. Thanks.
Comment 7 Joseph Vincens CLA 2011-11-09 06:38:00 EST
verified