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 254370 - ClassCastException: org.netbeans.modules.debugger.jpda.models.ArrayFieldVariable cannot be cast to org.netbeans.api.debugger.jpda.ObjectVariable
Summary: ClassCastException: org.netbeans.modules.debugger.jpda.models.ArrayFieldVaria...
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-14 12:22 UTC by Martin Entlicher
Modified: 2015-08-15 01:57 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 214695


Attachments
stacktrace (2.31 KB, text/plain)
2015-08-14 12:22 UTC, Martin Entlicher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Entlicher 2015-08-14 12:22:01 UTC
Build: NetBeans IDE Dev (Build 20150814-2011bddeef68)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.51-b03, Java(TM) SE Runtime Environment, 1.8.0_51-b16
OS: Linux

User Comments:
dao: Debug --> select object --> show reference --> walk an array

mentlicher: Going through instances of String[].




Stacktrace: 
java.lang.ClassCastException: org.netbeans.modules.debugger.jpda.models.ArrayFieldVariable cannot be cast to org.netbeans.api.debugger.jpda.ObjectVariable
   at org.netbeans.modules.debugger.jpda.heapwalk.ObjectArrayInstanceImpl.getValues(ObjectArrayInstanceImpl.java:80)
   at org.netbeans.modules.profiler.heapwalk.model.ObjectArrayNode$1.computeChildren(ObjectArrayNode.java:177)
   at org.netbeans.modules.profiler.heapwalk.model.BrowserUtils$1$1.run(BrowserUtils.java:301)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
   at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
   at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
Comment 1 Martin Entlicher 2015-08-14 12:22:03 UTC
Created attachment 155348 [details]
stacktrace
Comment 2 Martin Entlicher 2015-08-14 12:43:20 UTC
Fixed by changeset:   290840:b9799dccda97
http://hg.netbeans.org/core-main/rev/b9799dccda97
Comment 3 Quality Engineering 2015-08-15 01:57:46 UTC
Integrated into 'main-silver', will be available in build *201508150002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b9799dccda97
User: mentlicher@netbeans.org
Log: #254370: Create object variables from null elements.