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 255139 - ClassCastException: java.util.Collections$EmptyList cannot be cast to org.netbeans.lib.profiler.heap.Instance
Summary: ClassCastException: java.util.Collections$EmptyList cannot be cast to org.net...
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-09 13:40 UTC by Tomas Hurka
Modified: 2015-09-11 01:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 219815


Attachments
stacktrace (5.61 KB, text/plain)
2015-09-09 13:40 UTC, Tomas Hurka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Hurka 2015-09-09 13:40:24 UTC
Build: NetBeans IDE Dev (Build 20150909-8eca8a5c18e8)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.80-b11, Java(TM) SE Runtime Environment, 1.7.0_80-b15
OS: Mac OS X

User Comments:
thurka: FileDescriptor in debugger




Stacktrace: 
java.lang.ClassCastException: java.util.Collections$EmptyList cannot be cast to org.netbeans.lib.profiler.heap.Instance
   at org.netbeans.modules.profiler.heapwalk.details.jdk.IoDetailsProvider.computeStdDescriptor(IoDetailsProvider.java:146)
   at org.netbeans.modules.profiler.heapwalk.details.jdk.IoDetailsProvider.computeFDCache(IoDetailsProvider.java:124)
   at org.netbeans.modules.profiler.heapwalk.details.jdk.IoDetailsProvider.getDetailsString(IoDetailsProvider.java:102)
   at org.netbeans.modules.profiler.heapwalk.details.api.DetailsSupport.getDetailsString(DetailsSupport.java:70)
   at org.netbeans.modules.profiler.heapwalk.InstancesListController$InstancesListClassNode.getDetails(InstancesListController.java:157)
   at org.netbeans.modules.profiler.heapwalk.InstancesListController$InstancesListInstanceNode$1.run(InstancesListController.java:568)
Comment 1 Tomas Hurka 2015-09-09 13:40:26 UTC
Created attachment 156016 [details]
stacktrace
Comment 2 Tomas Hurka 2015-09-09 14:00:47 UTC
ClassCastException is caused by missing implementation of getValueOfStaticField() in org.netbeans.modules.debugger.jpda.heapwalk.JavaClassImpl
Comment 3 Tomas Hurka 2015-09-09 14:14:42 UTC
Fixed in profiler-main

changeset:   291208:471fcead19f1
user:        Tomas Hurka <thurka@netbeans.org>
date:        Wed Sep 09 16:11:24 2015 +0200
summary:     bugfix #255139, getValueOfStaticField() implemented
Comment 4 Quality Engineering 2015-09-11 01:22:41 UTC
Integrated into 'main-silver', will be available in build *201509110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/471fcead19f1
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #255139, getValueOfStaticField() implemented