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 235533 - ClassCastException: org.netbeans.modules.debugger.jpda.projects.ConstantPool$EntryUTF8 cannot be cast to org.netbeans.modules.debugger.jpda.projects.ConstantPool$EntryFieldMethodRef
Summary: ClassCastException: org.netbeans.modules.debugger.jpda.projects.ConstantPool$...
Status: NEW
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-05 00:16 UTC by janario
Modified: 2014-07-16 14:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 203592


Attachments
stacktrace (2.27 KB, text/plain)
2013-09-05 00:16 UTC, janario
Details
stacktrace (2.30 KB, text/plain)
2014-07-16 14:13 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description janario 2013-09-05 00:16:54 UTC
This bug was originally marked as duplicate of bug 227826, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 20130904-227582655241)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b15
OS: Linux

User Comments:
janario: debugging




Stacktrace: 
java.lang.ClassCastException: org.netbeans.modules.debugger.jpda.projects.ConstantPool$EntryUTF8 cannot be cast to org.netbeans.modules.debugger.jpda.projects.ConstantPool$EntryFieldMethodRef
   at org.netbeans.modules.debugger.jpda.projects.ConstantPool.getMethodName(ConstantPool.java:95)
   at org.netbeans.modules.debugger.jpda.projects.AST2Bytecode.matchSourceTree2Bytecode(AST2Bytecode.java:157)
   at org.netbeans.modules.debugger.jpda.projects.EditorContextImpl.computeOperations(EditorContextImpl.java:2723)
   at org.netbeans.modules.debugger.jpda.projects.EditorContextImpl.getOperations(EditorContextImpl.java:1748)
   at org.netbeans.modules.debugger.jpda.ExpressionPool.createExpressionAt(ExpressionPool.java:193)
   at org.netbeans.modules.debugger.jpda.ExpressionPool.getExpressionAt(ExpressionPool.java:102)
Comment 1 janario 2013-09-05 00:16:56 UTC
Created attachment 139684 [details]
stacktrace
Comment 2 Martin Entlicher 2013-09-05 09:26:21 UTC
So it's apparent, that the last fix was not enough.
At least, now this does not occur during parsing of the constant pool, but during retrieving of it's entries later on.
We'd welcome some concrete steps to reproduce, e.g. with some sample project.
Comment 3 markiewb 2014-07-16 14:13:21 UTC
Created attachment 148086 [details]
stacktrace

Hovering above some fields in java code while debugging