This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 33032 - CompoundLocation confuses locals view
Summary: CompoundLocation confuses locals view
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: Sun SunOS
: P1 blocker (vote)
Assignee: issues@debugger
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2003-04-17 19:52 UTC by David Weatherford
Modified: 2010-04-29 09:13 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Weatherford 2003-04-17 19:52:56 UTC
I'm trying to implement callstack filtering by
using
CompoundLocation to represent a series of hidden
frames.

I found that when a CompoundLocation is in the
callstack,
frames below that entry get the wrong stackFrame
index.
For example, if the stack looks like

bar
<hidden (3 frames)>
foo
main

Then the indices assigned are

0    bar
1,2,3    (the hidden frames)
2    foo
3    main

Obviously, foo should be 4 and main 5.  The error
appears to be in
o.n.m.debugger.support.nodes.CallStackRootNode$CallStackChildren.createNodes()
where it uses the expression (keys.indexOf (loc))
as the frame index.  This is wrong because it
counts the CompoundLocation as a single frame.
Comment 1 Jan Jancura 2003-04-18 09:28:15 UTC
I will fix it to nb4.0 (at the latest)
Comment 2 David Weatherford 2003-10-07 22:27:09 UTC
Note: This fix is required for Arrow, now that the call-stack
filtering feature is being backported.
Comment 3 Milan Kubec 2004-01-05 16:31:51 UTC
Is this issue reflected in "new" debugger?
Comment 4 Jan Jancura 2004-01-05 17:07:04 UTC
This part of API is not fully designed yet.
I will put the API tag here to not forget this issue.
Its not easy problem :((
Comment 5 Jan Jancura 2004-01-28 17:17:06 UTC
fixed in debuggerAPI branch
Comment 6 Quality Engineering 2010-04-29 09:13:13 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.