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

Bug 17616

Summary: Source not shown for "thread" while exiting program
Product: [Eclipse Project] JDT Reporter: Darin Wright <darin.eclipse>
Component: DebugAssignee: Jared Burns <jared_burns>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P2    
Version: 2.0   
Target Milestone: 2.0 F2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Darin Wright CLA 2002-05-24 09:14:42 EDT
When I step out of a main (running on Sun 1.3.1), the top stack frame shows 
that it is in "java.lang.Thread". I can do a few steps before the program 
exits, but I never see source for "java.lang.Thread".
Comment 1 Darin Swanson CLA 2002-05-30 21:51:40 EDT
The JDIStackFrame in this case is preserved but the underlying stack frame has 
changed.  So our launch view caching is happy and does not lookupEditorInput().

Propose to implement equals on JDIStackFrame to take this into account.
Comment 2 Darin Swanson CLA 2002-05-30 21:52:41 EDT
Well the equals will not work as comparing yourself to yourself generally 
returns true ;-)
Comment 3 Darin Wright CLA 2002-05-31 17:17:03 EDT
Popose a fix in JDIThread.computeFrames(...).

When the number of frames are equal, we also have to check if the top frames 
are still in the same method. If not, compute all frames.
Comment 4 Darin Wright CLA 2002-05-31 17:30:21 EDT
Fixed.
Comment 5 Darin Wright CLA 2002-05-31 17:30:48 EDT
please verify - see JDIThread.computeStackFrames(...)
Comment 6 Darin Swanson CLA 2002-05-31 19:34:06 EDT
Verified.