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 104669 - Heap Walker class filter does not work the second time
Summary: Heap Walker class filter does not work the second time
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jiri Sedlacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-23 22:49 UTC by _ gsporar
Modified: 2007-09-26 13:17 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 _ gsporar 2007-05-23 22:49:01 UTC
Use the attached heap dump (if collabnet will allow the attach - if not send me
an email and we'll work something out).

Open the .hprof file in the Heap Walker.  Type in "Voice" in the class filter
control at the bottom of the window.

You will see several classes listed.  

Right-click the entry for com.sun.speech.freetts.Voice and choose "Show Only
Subclasses"

The display redraws to show the correct list of classes.

Remove the com.sun.speech.freetts.Voice entry from the Class filter at the
bottom of the window.

The display redraws to show all classes.

Type "Voice" again in the class filter and press Enter.  The display redraws and
is incorrect - it shows no classes at all.

Have to restart the IDE to get the correct display....
Comment 1 _ gsporar 2007-05-23 23:23:50 UTC
Looks like the "attach" didn't work because the file is too large.

Does not matter, though, this is not really a bug.  It is instead a usability
problem.  When I removed the fully-qualified name for the Voice class, the
filter setting did not get changed back to its default which is "Contains."  In
other words, it stayed at "Subclass of."

This is why my subsequent attempt to enter "Voice" did not work.  The filter had
been changed to "Subclass of" by my usage of the context menu entry.  And since
"Subclass of" requires a fully-qualified class name, the search results are empty.

Not sure what the change should be.  I'm tempted to suggest that maybe when the
user clears the class filter control, the filter should be changed back to the
default.
Comment 2 Jiri Sedlacek 2007-09-26 13:17:13 UTC
"Clear current filter" button now also resets filter type to the default (Contains). Although I don't think this is
exactly correct based on what the button was originally meant to do, it could prevent confusion for users who haven't
realized that filter type can be changed.

I'm afraid that change will probably lead to another issue "Don't clear filter type, just the filter value" which would
mean that the filter component needs to be redesigned.

Fixed for Beta2.