Bug 5349

Summary: ClassCastExceptions caused by BreakpointManager
Product: [Eclipse Project] Platform Reporter: Dani Megert <daniel_megert>
Component: DebugAssignee: Darin Wright <darin.eclipse>
Status: VERIFIED FIXED QA Contact:
Severity: blocker    
Priority: P1    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows NT   
Whiteboard:
Attachments:
Description Flags
Patched version of BreakpointManager.java none

Description Dani Megert CLA 2001-10-30 07:56:10 EST
Build ID: 20011025, BreakpointManager 1.10

CCE in BreakpointManager because arrays from type X are cased to arrays of type 
Y.

- error when Java editor in workspace with breakpoints is opened
- internal error when adding/removing breakpoint
Comment 1 Dani Megert CLA 2001-10-30 07:57:28 EST
Created attachment 34 [details]
Patched version of BreakpointManager.java
Comment 2 Dani Megert CLA 2001-10-30 07:59:28 EST
Attached a patched version of the BreakpointManager.
Note: There might be other problems related to array casting - I only fixed the 
two that caused me direct problems.
Comment 3 Joe Szurszewski CLA 2001-10-30 11:17:48 EST
Both problems centered on incorrect casting of Object arrays, i.e., the 
difference between an Object[] that happens to contain IBreakpointListeners, 
and an IBreakpointListener[].  Implemented Daniel's fix, and checked 
BreakpointManager for any other similar problems, but found none.
Comment 4 Joe Szurszewski CLA 2001-10-30 11:18:07 EST
Fixed.
Comment 5 Darin Wright CLA 2001-10-31 14:22:49 EST
Verified.