Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 68677 - <not responding> label for restored bkp in source outside jdt project
Summary: <not responding> label for restored bkp in source outside jdt project
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0.1   Edit
Assignee: Luc Bourlier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-25 17:23 EDT by Li Ding CLA
Modified: 2004-08-25 15:21 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Li Ding CLA 2004-06-25 17:23:38 EDT
I created a launch config type to make remote java debugging easier. The source 
of debuggee was on remote host only. 

When debugging, the source was dynamically downloaded to a local workspace 
project which has java nature.  I set breakpoint in the source and everything 
looked fine. However, when I restared the next debug session, the breakpoint 
was restored with the label <no responding>.  Breakpoint still can be hit 
though.
Comment 1 Darin Wright CLA 2004-06-30 10:49:32 EDT

*** This bug has been marked as a duplicate of 68915 ***
Comment 2 Darin Wright CLA 2004-06-30 10:50:50 EDT
Incorrectly marked as dup (I pressed commit instead of "find").
Comment 3 Li Ding CLA 2004-07-04 10:15:20 EDT
I took a look for JDT code. It looks like there is a checking if the 
compileunit is in classpath or not when bkp is restored. In our case, the 
source is downloaded dynamically by a remote source container and stored in a 
local project with java nature.  The project is used as a container for all 
sources downloaded remotely, it is also used to store other lanuage source, 
such as C++, C. Therefore, the downloaded java source is not added to the 
classpath of local workspace project. 

I think this is a general issue for restoring bkp on remote source. 
Comment 4 Darin Swanson CLA 2004-07-04 17:09:20 EDT
Just a note that priority is a field that is generally resevered to be changed 
by committers.
Comment 5 Darin Wright CLA 2004-07-22 15:39:41 EDT
Fixed in BreakpointUtils.

Each java breakpoint associated with a java model element has a java element 
handle attribute. We attempt to use this handle to generate a member name for 
the breakpoint (i.e. the member containing the breakpoint). When the java 
element goes missing, a java model exception is thrown and we put up the "not 
responding" label. The exception is thrown as we do a binary search for the 
member containing the breakpoint based on line number - but the search fails 
with an exception as the element no longer exists. The fix is to avoid doing 
the search when the enclosing type does not exist, but still return the handle 
of the containing type.
Comment 6 Darin Wright CLA 2004-07-22 15:40:14 EDT
Also released fix to 3.0.1.

Please verify, Luc.
Comment 7 Luc Bourlier CLA 2004-08-25 15:21:03 EDT
Verified.