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 138578 - Evaluate expression errors (Thread.* and System.*)
Summary: Evaluate expression errors (Thread.* and System.*)
Status: NEW
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P4 blocker (vote)
Assignee: Daniel Prusa
URL: http://wiki.netbeans.org/TS_60_JPDAdb...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-30 08:28 UTC by polan
Modified: 2009-12-02 08:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ClassCast exception from evaluate expression (1.55 KB, text/plain)
2008-06-30 08:29 UTC, polan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description polan 2008-06-30 08:28:39 UTC
[Build 200806300002, JDK 1.5.0]

This was found when going through test suite http://wiki.netbeans.org/TS_60_JPDAdbg_EvaluateExpression

To reproduce:
1) Have any java project with a breakpoint, debug, invoke evaluate expression (Ctrl+F9)

2) Enter i.e. Thread.stop() as an expression, evaluate
ERROR: java.lang.ClassCastException is thrown (attached)

3) Enter System.exit(1) as an expression, evaluate. You get one of the following:
ERROR: Evaluating is out of order. You can't evaluate anything until you start a new debugging session.
  NOTE: When you stop this debugging session, you'll get 'Information' dialog with 'No current context (stack frame)'
ERROR: IDE deadlocks, nothing responds
  NOTE: I was unable to reproduce this, and unfortunately I don't have the thread dump
Comment 1 polan 2008-06-30 08:29:12 UTC
Created attachment 63659 [details]
ClassCast exception from evaluate expression
Comment 2 Daniel Prusa 2008-07-01 15:59:18 UTC
ClassCastException fixed.
To put System.exit(1) into Expression Evaluator is not a normal use case, decreasing priority to P4.

changeset ab372cdb2112 in main
details: http://hg.netbeans.org/main?cmd=changeset;node=ab372cdb2112
Comment 3 Quality Engineering 2008-07-02 04:30:08 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #294 build
Changeset: http://hg.netbeans.org/main/rev/ab372cdb2112
User: Daniel Prusa <dprusa@netbeans.org>
Log: #138578: Report instance methods invoked on class references (i.e. like static)