Community
Participate
Working Groups
Generate this code... rr R1; rr = new R1{ i = 7 }; It'll be something like this... R1 eze$Temp1 = new R1(); { R1 eze$SettingTarget1 = new R1(); eze$SettingTarget1.i = (int)((short) 7); org.eclipse.edt.runtime.java.egl.lang.AnyValue.ezeCopyTo(eze$SettingTarget1, eze$Temp1); } org.eclipse.edt.runtime.java.egl.lang.AnyValue.ezeCopyTo(eze$Temp1, rr); Notice that we make TWO new records. We shouldn't initialize eze$Temp1, and the last line inside the block should be "eze$Temp1 = eze$SettingTarget1;".
fixed
I'm closing this since we no longer make two records in the statement. We still have the problem that we're calling AnyValue.ezeCopyTo twice: as I wrote, the last line inside the block should be "eze$Temp1 = eze$SettingTarget1;". I'll let it go for now.