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

Bug 354173

Summary: Strange behavioural difference in GWT change recorder
Product: [Modeling] EMF Reporter: Kenn Hussey <Kenn.Hussey>
Component: CoreAssignee: Ed Merks <Ed.Merks>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3 Flags: Kenn.Hussey: indigo+
Version: 2.7.0   
Target Milestone: SR1   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Kenn Hussey CLA 2011-08-08 14:58:42 EDT
There is a strange different between the behaviour of the change recorder in the "normal" runtime and the GWT runtime. I've localized the problem to the ChangeRecorder#createListChanges(EList, EList, EList) method. In GWT, it seems that the latter part of the method, i.e., the part after the for (;;) loop, never gets executed. It's as if the GWT compiler can't properly handle the code in that loop for some reason and just drops the remainder of the method when concerting it to Javascript. For some reason, changing the loop to while (true) instead fixes the problem.
Comment 1 Kenn Hussey CLA 2011-08-29 18:12:35 EDT
The fix has been committed to CVS (head and maintenance).
Comment 2 Kenn Hussey CLA 2011-08-29 19:51:31 EDT
The fix is available in maintenance build M201108291525 and integration build I201108291838.