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: NetBeans IDE Dev (Build 200911191401) VM: Java HotSpot(TM) 64-Bit Server VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03 OS: Linux, 2.6.31-14-generic, amd64 User Comments: dartme18: I had just created a task for the SwingUtilities.invakeLater method, an anonymous new Runnable(). I put a breakpoint in the body of run() and that's about it. Nothing special. vikas_s: Evaluating an expression during debugging GUEST: I've tried to evaluate code during debug session. So I open evalueate code windows, put code there and hit "evaluate code fragment" button. Stacktrace: java.lang.ClassCastException: com.sun.tools.jdi.InterfaceTypeImpl cannot be cast to com.sun.jdi.ClassType at org.netbeans.modules.debugger.jpda.expr.EvaluatorVisitor.visitNewClass(EvaluatorVisitor.java:2249) at org.netbeans.modules.debugger.jpda.expr.EvaluatorVisitor.visitNewClass(EvaluatorVisitor.java:188) at com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1366) at org.netbeans.modules.debugger.jpda.expr.EvaluatorVisitor.visitMethodInvocation(EvaluatorVisitor.java:314) at org.netbeans.modules.debugger.jpda.expr.EvaluatorVisitor.visitMethodInvocation(EvaluatorVisitor.java:188) at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1311)
Created attachment 91616 [details] stacktrace
Created attachment 91617 [details] stacktrace
The code does not count with evaluation of creation of new interface implementations.
We can not evaluate creation of a new class with a new body. Therefore we'll print a warning instead.
Fixed in changeset: 154753:fd1ca7781e38 http://hg.netbeans.org/main/rev/fd1ca7781e38
Integrated into 'main-golden', will be available in build *200912010200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/fd1ca7781e38 User: mentlicher@netbeans.org Log: #177528 - Let the user know that we can not create classes with a new body.