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

Summary: The evaluation of watches is not correct
Product: debugger Reporter: Jan Lahoda <jlahoda>
Component: CodeAssignee: issues@debugger <issues>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: Sun   
OS: SunOS   
Issue Type: DEFECT Exception Reporter:
Attachments: The InvalidExpressionException thrown.
Output from whole debugging session.

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.