Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361857 - Can't assign values to multidimensional arrays
Summary: Can't assign values to multidimensional arrays
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Yun Feng Ma CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-24 15:26 EDT by Joseph Vincens CLA
Modified: 2017-02-23 14:17 EST (History)
3 users (show)

See Also:


Attachments
testcase (775 bytes, application/octet-stream)
2011-10-24 15:28 EDT, Joseph Vincens CLA
no flags Details
Patch (2.96 KB, patch)
2011-11-03 02:03 EDT, Yun Feng Ma CLA
no flags Details | Diff
Patch (2.17 KB, patch)
2011-11-03 05:23 EDT, Yun Feng Ma CLA
lasher: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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