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 177528 - [68cat] ClassCastException: com.sun.tools.jdi.InterfaceTypeImpl cannot be cast to com.sun.jdi.ClassType
Summary: [68cat] ClassCastException: com.sun.tools.jdi.InterfaceTypeImpl cannot be cas...
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-24 08:56 UTC by neilg
Modified: 2009-12-01 03:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 152007


Attachments
stacktrace (7.40 KB, text/plain)
2009-11-24 08:56 UTC, neilg
Details
stacktrace (4.27 KB, text/plain)
2009-11-24 08:58 UTC, neilg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description neilg 2009-11-24 08:56:53 UTC
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)
Comment 1 neilg 2009-11-24 08:56:57 UTC
Created attachment 91616 [details]
stacktrace
Comment 2 neilg 2009-11-24 08:58:00 UTC
Created attachment 91617 [details]
stacktrace
Comment 3 Martin Entlicher 2009-11-24 09:08:37 UTC
The code does not count with evaluation of creation of new interface implementations.
Comment 4 Martin Entlicher 2009-11-27 05:12:05 UTC
We can not evaluate creation of a new class with a new body. Therefore we'll print a warning instead.
Comment 5 Martin Entlicher 2009-11-30 07:23:19 UTC
Fixed in changeset:   154753:fd1ca7781e38
http://hg.netbeans.org/main/rev/fd1ca7781e38
Comment 6 Quality Engineering 2009-12-01 03:06:09 UTC
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.