Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359093 - Abort a pending step if no StepEvent is received prior to a SuspendEvent
Summary: Abort a pending step if no StepEvent is received prior to a SuspendEvent
Status: RESOLVED FIXED
Alias: None
Product: JSDT
Classification: WebTools
Component: Debug (show other bugs)
Version: 3.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.4 M3   Edit
Assignee: Michael Rennie CLA
QA Contact: Michael Rennie CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 367806
  Show dependency tree
 
Reported: 2011-09-27 11:10 EDT by Michael Rennie CLA
Modified: 2012-01-03 19:45 EST (History)
2 users (show)

See Also:


Attachments
proposed fix (972 bytes, patch)
2011-09-27 11:10 EDT, Michael Rennie CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rennie CLA 2011-09-27 11:10:57 EDT
Created attachment 204091 [details]
proposed fix

Depending on the implementation of the EventQueue / EventRequestManager it could be possible to process a SuspendEvent when no StepEvent has been received. 

For example: you step return from a function and the remote VM (browser) immediately suspends (on a breakpoint or exception) - in this case the thread that initiated the step would still think it was still stepping and be in the wrong state (waiting for a StepEvent that will never come).
Comment 1 Michael Rennie CLA 2011-09-29 11:22:59 EDT
applied to HEAD