Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354173 - Strange behavioural difference in GWT change recorder
Summary: Strange behavioural difference in GWT change recorder
Status: VERIFIED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: Core (show other bugs)
Version: 2.7.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 major (vote)
Target Milestone: SR1   Edit
Assignee: Ed Merks CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-08 14:58 EDT by Kenn Hussey CLA
Modified: 2011-08-31 22:20 EDT (History)
0 users

See Also:
Kenn.Hussey: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.