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 41274 - The evaluation of watches is not correct
Summary: The evaluation of watches is not correct
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: Sun SunOS
: P3 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-24 14:58 UTC by Jan Lahoda
Modified: 2010-04-29 09:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The InvalidExpressionException thrown. (566 bytes, text/plain)
2004-03-24 15:01 UTC, Jan Lahoda
Details
Output from whole debugging session. (51.10 KB, text/plain)
2004-03-24 15:08 UTC, Jan Lahoda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2004-03-24 14:58:08 UTC
[custom trunk build with new Debugger API, version
2, JDK 1.4.2_03]

1. Let's suppose that a Java main class "Test"
exists with a "private static int X;" field.
2. Set a breakpoint somewhere into the main method.
3. Start the debugger
4. Once the debugger stops at the breakpoint add
two new watches: "X" and "Test.X". The first watch
is evaluated correctly, but the second reports:
">Identifier cannot be resolved: Test.X<" and
throws the attached exception to the
<projectname>(debug) console.
Comment 1 Jan Lahoda 2004-03-24 15:01:01 UTC
Created attachment 14126 [details]
The InvalidExpressionException thrown.
Comment 2 Jan Lahoda 2004-03-24 15:07:13 UTC
There are more exceptions, attaching whole debugger output.
Comment 3 Jan Lahoda 2004-03-24 15:08:16 UTC
Created attachment 14127 [details]
Output from whole debugging session.
Comment 4 Maros Sandor 2004-05-10 15:32:14 UTC
I fixed resolution of types in static context.

/cvs/debuggerjpda/src/org/netbeans/modules/debugger/jpda/expr/Evaluato
r.java,v  <--  Evaluator.java
new revision: 1.4; previous revision: 1.3
Comment 5 Quality Engineering 2010-04-29 09:17:02 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.