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 195737

Summary: OQL - fields property of Class object broken
Product: profiler Reporter: Tomas Hurka <thurka>
Component: EngineAssignee: Tomas Hurka <thurka>
Status: RESOLVED FIXED    
Severity: normal Keywords: VISUALVM
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Tomas Hurka 2011-02-21 08:31:48 UTC
fields property of Class object should return array of field objects. Field object has name, signature properties.

So this OQL query 
select map(heap.findClass("java.util.HashMap").fields, "it.name")
should return:
entrySet
modCount
loadFactor
threshold
size
table

currently it returns list of static field names:
serialVersionUID
DEFAULT_LOAD_FACTOR
MAXIMUM_CAPACITY
DEFAULT_INITIAL_CAPACITY
Comment 1 Tomas Hurka 2011-02-21 09:29:37 UTC
Fixed in profiler-main

changeset:   189147:45a5857c2823
user:        Tomas Hurka <thurka@netbeans.org>
date:        Mon Feb 21 10:19:05 2011 +0100
summary:     bugfix #195737, class fields attribute fixed to return names and signatures of the instance fields
Comment 2 Quality Engineering 2011-02-23 05:30:02 UTC
Integrated into 'main-golden', will be available in build *201102230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/45a5857c2823
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #195737, class fields attribute fixed to return names and signatures of the instance fields