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 268975 - ClassCastException: org.netbeans.modules.debugger.jpda.projects.ConstantPool$EntryNameType 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: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-14 15:13 UTC by javydreamercsw
Modified: 2016-11-14 15:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 220631


Attachments
stacktrace (2.33 KB, text/plain)
2016-11-14 15:13 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description javydreamercsw 2016-11-14 15:13:45 UTC
Build: NetBeans IDE 8.2 (Build 201609300101)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.101-b13, Java(TM) SE Runtime Environment, 1.8.0_101-b13
OS: Linux

User Comments:
javydreamercsw: In a debug session.

GUEST: While debuging.




Stacktrace: 
java.lang.ClassCastException: org.netbeans.modules.debugger.jpda.projects.ConstantPool$EntryNameType 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:163)
   at org.netbeans.modules.debugger.jpda.projects.EditorContextSupport.computeOperations(EditorContextSupport.java:1064)
   at org.netbeans.modules.debugger.jpda.projects.PreferredCCParser$3.call(PreferredCCParser.java:209)
   at org.netbeans.modules.debugger.jpda.projects.PreferredCCParser$3.call(PreferredCCParser.java:201)
   at org.netbeans.modules.debugger.jpda.projects.PreferredCCParser.runGuarded(PreferredCCParser.java:794)
Comment 1 javydreamercsw 2016-11-14 15:13:47 UTC
Created attachment 162908 [details]
stacktrace
Comment 2 Martin Entlicher 2016-11-14 15:24:32 UTC
Can you please provide some sample application and steps to reproduce?
There's something wrong in reading of constant pool entries, but reproducibility is a problem.