Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 231036 - [OQL] instance field named "map" cannot be displayed
[OQL] instance field named "map" cannot be displayed
Product: profiler
Classification: Unclassified
Component: Base
All All
: P3 (vote)
: 7.4
Assigned To: Tomas Hurka
Depends on:
  Show dependency treegraph
Reported: 2013-06-10 13:51 UTC by Tomas Hurka
Modified: 2013-06-12 02:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Hurka 2013-06-10 13:51:18 UTC
I have an object with an attribute named map. This attribute appears correctly when I open the object that has it in the Instances view, but when I go to "OQL Console" it gives me a "{}" string.

The class I have is:

public class TestBean {

    private Map map = new HashMap();
    public void add(String key, Object value) {

and when I try to see the map attribute using OQL:

var obj = heap.findObject('0x15669a08');;

The value displayed is:



After I changed the attribute name to "map2" it worked:

var obj = heap.findObject('0x15669a08');

the result was:


The same happens if I try:

select from my.pkg.TestBean x
Comment 1 Tomas Hurka 2013-06-11 08:55:07 UTC
Fixed in profiler-main

changeset:   255535:16dc4cfc77fc
user:        Tomas Hurka <>
date:        Tue Jun 11 10:52:49 2013 +0200
summary:     bugfix #231036, prefix field name with '_$' to avaid name clash with internal Array representation
Comment 2 Quality Engineering 2013-06-12 02:01:07 UTC
Integrated into 'main-golden', will be available in build *201306112301* on (upload may still be in progress)
User: Tomas Hurka <>
Log: bugfix #231036, prefix field name with '_$' to avaid name clash with internal Array representation

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo