Community
Participate
Working Groups
I have attached 2 libraries. Either use EUnit to generate egl test driver for java for libTest or write a program that invokes libTest you can test2 fails function test2() {@Test} lib1.init(); lib1.getJRecord().f1 = "abcd"; syslib.writeStdOut("test2 expecting xyz"); lib1.printRecord(); LogResult.assertStringEqual1("xyz", lib1.getField1()); end According to Tim W, lib1.getJRecord should return a internal temp variable which is a copy of the record, just like test1
Created attachment 205675 [details] lib1
Created attachment 205676 [details] libTest
javascript gen fails test1 and test2, see Bug 361590
I'm going to talk with Tim on this, because what you are saying doesn't make any sense to me. If the getRecord method was implemented so that it always made a copy, then the user would not be able to change anything in the record, except by the direct approach of x.r.??? =
fixed
verified java is fixed in 2011/11/11/0901's build However, javascript still have 2 failures out of 3 the following is javascript results libTest::test1: FAILED - Failed: Expected value = 'xyz' Actual value = 'abc' libTest::test2: FAILED - Failed: Expected value = 'xyz' Actual value = 'abcd' libTest::test3: OK reopen it against javascript gen
please also check Bug#361855, might be a duplicate?
For JSGen part, this is duplicated with bug 361590. *** This bug has been marked as a duplicate of bug 361590 ***
closing defect