Bug 21010

Summary: Use getAdapter when converting IJavaThread to JDIThread
Product: [Eclipse Project] JDT Reporter: Erin Harris <eharris>
Component: DebugAssignee: Jared Burns <jared_burns>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: jared_burns
Version: 2.0   
Target Milestone: 2.0.1   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Erin Harris CLA 2002-06-26 10:37:54 EDT
In JDT when converting IJava* to JDI* use getAdapter instead of casting.

For example in JDIClassType it casts an IJavaThread to a JDIThread.

Or some other method for allowing super debug adapters to inherit the features 
of JDT debug adapter.
Comment 1 Darin Swanson CLA 2002-06-27 10:53:37 EDT
Deferred for post 2.0 consideration
Comment 2 Jared Burns CLA 2002-07-01 14:53:41 EDT
The IJava* interfaces are not allowed to be implemented. Thus, JDIThread is 
guaranteed to be the only implementation of IJavaThread. If a client 
implements IJavaThread, they are breaking the rules of engagement.

Move to close.
Comment 3 Darin Wright CLA 2002-07-23 14:33:04 EDT
Erin identified minimal fixes required for 2.0.1 as 

(1) implement #getAdapter(IJavaThread) in JDIThread
(2) Chnages to ThreadFilterViewer to use IJavaThread/IJavaDeubgTarget adapaters
Comment 4 Darin Wright CLA 2002-07-23 14:38:32 EDT
If we use #getAdapter calls, clients do not have to implement the java debug 
model interfaces. We should investigate a more full blown implementation of 
this. I will open a new bug for further work.

Fix released to HEAD and 2.0.1 branch.
Comment 5 Darin Wright CLA 2002-07-23 14:38:48 EDT
Please verify, Jared.
Comment 6 Jared Burns CLA 2002-07-23 15:42:12 EDT
Verified code.