Bug 5349 - ClassCastExceptions caused by BreakpointManager
Summary: ClassCastExceptions caused by BreakpointManager
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows NT
: P1 blocker (vote)
Target Milestone: ---   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-30 07:56 EST by Dani Megert CLA
Modified: 2001-10-31 14:22 EST (History)
0 users

See Also:


Attachments
Patched version of BreakpointManager.java (12.53 KB, text/plain)
2001-10-30 07:57 EST, Dani Megert CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.