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 227826 - 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: RESOLVED FIXED
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-03-22 15:57 UTC by janario
Modified: 2013-06-08 01:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 199813


Attachments
stacktrace (2.13 KB, text/plain)
2013-03-22 15:57 UTC, janario
Details

Note You need to log in before you can comment on or make changes to this bug.
Description janario 2013-03-22 15:57:57 UTC
This bug was originally marked as duplicate of bug 224502, 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 20130321-7750c368ef3d)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_13-b20
OS: Linux

User Comments:
janario: debuging. redeploy with jrebel




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:92)
   at org.netbeans.modules.debugger.jpda.projects.AST2Bytecode.matchSourceTree2Bytecode(AST2Bytecode.java:157)
   at org.netbeans.modules.debugger.jpda.projects.EditorContextImpl.computeOperations(EditorContextImpl.java:2635)
   at org.netbeans.modules.debugger.jpda.projects.EditorContextImpl.getOperations(EditorContextImpl.java:1727)
   at org.netbeans.modules.debugger.jpda.ExpressionPool.createExpressionAt(ExpressionPool.java:186)
   at org.netbeans.modules.debugger.jpda.ExpressionPool.getExpressionAt(ExpressionPool.java:102)
Comment 1 janario 2013-03-22 15:57:59 UTC
Created attachment 132952 [details]
stacktrace
Comment 2 Martin Entlicher 2013-06-05 15:23:18 UTC
The first report is already fixed, the second is impossible to reproduce for me. Thus I've added the name of the file the problematic constant pool comes from.
If this error reappears, it would help if you attach the binary class that corresponds to the source file name (which is in the exception annotation now).
changeset:   255653:2763fd64943f
http://hg.netbeans.org/core-main/rev/2763fd64943f
Comment 3 Quality Engineering 2013-06-08 01:08:29 UTC
Integrated into 'main-golden', will be available in build *201306072301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2763fd64943f
User: mentlicher@netbeans.org
Log: #227826: Add a message description to a potential runtime exception thrown from ConstantPool, so that we'll be able to resolve further issues more easily.