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

Bug 400606

Summary: Deferred.cancel called out of order
Product: [ECD] Orion Reporter: Simon Kaegi <simon_kaegi>
Component: ClientAssignee: Simon Kaegi <simon_kaegi>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mamacdon
Version: 2.0Flags: mamacdon: review+
Target Milestone: 2.0 RC2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Simon Kaegi CLA 2013-02-12 12:48:16 EST
One of the new test I've written for cancel show that Deferred cancel is delivering the cancel message out of order. Both "parent cancellation" and "then" promise notifications are delivered async and MUST NOT be interleaved with synchronous calls.
Comment 1 Mark Macdonald CLA 2013-02-12 13:09:43 EST
Reviewed as well as I could
Comment 2 Simon Kaegi CLA 2013-02-12 13:18:05 EST
Thanks Mark. Although the code is fairly small this stuff is not trivial and so along with this commit are a number of new tests designed to validate ordering for cancellation.
Comment 3 Simon Kaegi CLA 2013-02-14 13:43:52 EST
Fixed.