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 190835 - Heap.getJavaClassByID() returns null for valid id
Summary: Heap.getJavaClassByID() returns null for valid id
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Engine (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-07 17:44 UTC by Tomas Hurka
Modified: 2010-10-09 15:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Hurka 2010-10-07 17:44:20 UTC
The following code returns null for valid classid:

        Heap heap = HeapFactory.createHeap(new File("path_heap_dump"));
        long javaclassId = 1822158616;
        JavaClass result = heap.getJavaClassByID(javaclassId);

use heap dump from issue #190820.
Comment 1 Tomas Hurka 2010-10-07 17:48:21 UTC
Fixed in profiler-main.

changeset:   178955:c5f2b58acff5
user:        Tomas Hurka <thurka@netbeans.org>
date:        Thu Oct 07 19:46:33 2010 +0200
summary:     bugfix #190835, make sure that createClassCollection() is invoked before using hprofHeap.idToOffsetMap.get()
Comment 2 Quality Engineering 2010-10-09 15:25:00 UTC
Integrated into 'main-golden', will be available in build *201010090000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/c5f2b58acff5
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #190835, make sure that createClassCollection() is invoked before using hprofHeap.idToOffsetMap.get()