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

Summary: ClassCastException: org.netbeans.modules.debugger.jpda.projects.ConstantPool$EntryNameType cannot be cast to org.netbeans.modules.debugger.jpda.projects.ConstantPool$EntryFieldMethodRef
Product: debugger Reporter: javydreamercsw <javydreamercsw>
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 220631
Attachments: stacktrace

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.