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 240034 - ClassCastException: com.sun.tools.jdi.InterfaceTypeImpl cannot be cast to com.sun.jdi.ObjectReference
Summary: ClassCastException: com.sun.tools.jdi.InterfaceTypeImpl cannot be cast to com...
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-06 15:39 UTC by Martin Entlicher
Modified: 2014-01-08 02:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 185087


Attachments
stacktrace (5.67 KB, text/plain)
2014-01-06 15:39 UTC, Martin Entlicher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Entlicher 2014-01-06 15:39:55 UTC
Build: NetBeans IDE Dev (Build 20131216-de72dafc662c)
VM: Java HotSpot(TM) Client VM, 24.0-b56, Java(TM) SE Runtime Environment, 1.7.0_40-b43
OS: Linux

User Comments:
mentlicher: During reproduction of issue #239742




Stacktrace: 
java.lang.ClassCastException: com.sun.tools.jdi.InterfaceTypeImpl cannot be cast to com.sun.jdi.ObjectReference
   at org.netbeans.modules.debugger.jpda.expr.EvaluatorVisitor.visitMethodInvocation(EvaluatorVisitor.java:404)
   at org.netbeans.modules.debugger.jpda.expr.EvaluatorVisitor.visitMethodInvocation(EvaluatorVisitor.java:200)
   at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1477)
   at org.netbeans.modules.debugger.jpda.expr.EvaluatorVisitor.visitExpressionStatement(EvaluatorVisitor.java:1663)
   at org.netbeans.modules.debugger.jpda.expr.EvaluatorVisitor.visitExpressionStatement(EvaluatorVisitor.java:200)
   at com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1302)
Comment 1 Martin Entlicher 2014-01-06 15:39:56 UTC
Created attachment 143637 [details]
stacktrace
Comment 2 Martin Entlicher 2014-01-06 16:07:47 UTC
Fixed by changeset:   270064:7289d6fd9574
http://hg.netbeans.org/core-main/rev/7289d6fd9574
Comment 3 Quality Engineering 2014-01-08 02:52:11 UTC
Integrated into 'main-silver', will be available in build *201401080002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/7289d6fd9574
User: mentlicher@netbeans.org
Log: #239742, #240034: Do not allow method invocations on interface types.