Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361855 - Records are not copied when they are passed as in parameters
Summary: Records are not copied when they are passed as in parameters
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P1 major (vote)
Target Milestone: ---   Edit
Assignee: Yun Feng Ma CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-24 15:13 EDT by Joseph Vincens CLA
Modified: 2017-02-23 14:14 EST (History)
2 users (show)

See Also:


Attachments
testcase (700 bytes, application/octet-stream)
2011-10-24 15:14 EDT, Joseph Vincens CLA
no flags Details

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: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