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.
[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
Created attachment 63659 [details] ClassCast exception from evaluate expression
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
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)