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

Bug 361855

Summary: Records are not copied when they are passed as in parameters
Product: z_Archived Reporter: Joseph Vincens <jvincens>
Component: EDTAssignee: Yun Feng Ma <mayunf>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P1 CC: jqian, mayunf
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
testcase none

Description Joseph Vincens CLA 2011-10-24 15:13:36 EDT
The attached functions work in Java gen but not in JS gen
Comment 1 Joseph Vincens CLA 2011-10-24 15:14:12 EDT
Created attachment 205860 [details]
testcase
Comment 2 Joseph Vincens CLA 2011-10-24 15:15:33 EDT
The attached should create 2 different records, but since the record is not copied on in the same record is attached as index 1 and 2.
expected output is:
Index 1
Index 2
Comment 3 Yun Feng Ma CLA 2011-11-04 01:49:39 EDT
I just tried EDT nightly build 20111103, looks like it has been fixed. Thanks.
Comment 4 Joseph Vincens CLA 2011-11-09 06:49:38 EST
The record is not being copied when it is appended to the array.
The output of the test is:
Index 2
Index 2
Comment 5 Yun Feng Ma CLA 2011-11-16 00:29:34 EST
Fixed, borrowed JavaGen logic. Thanks.
Comment 6 Joseph Vincens CLA 2011-11-21 15:10:18 EST
verified