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 101550 - UI problems when displaying large char[]
Summary: UI problems when displaying large char[]
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jiri Sedlacek
URL:
Keywords:
: 104780 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-18 12:42 UTC by Petr Nejedly
Modified: 2007-05-25 08:25 UTC (History)
1 user (show)

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 Petr Nejedly 2007-04-18 12:42:41 UTC
In case I have char[] array in my heap dump and want to see what's in it, I have
to use the tooltip over the value cell in the HeapWalker's instance view.
But for large char arrays, the tooltip behaves erratically - just blinks shortly
and disappear on each modse movement over the table cell.
Moreover, there are few more problems with this:

First, I may need to see bigger part of the char array than what can fit into
the tooltip.

Second, it seems that Swing behaves poorly when you ask it to "measure" really
long String - it caches the largest used char array in
sun.swing.SwingUtilities2, which may cause a memory hog - ever looking at 2MB
char array means SwingUtilities2 will keep 2MB copy of the array forever.
Comment 1 J Bachorik 2007-05-03 23:48:01 UTC
fixed in trunk
toString() value for very long char arrays is truncated so it doesn't cause OOME
if you would like to have a way to display the whole char array in textual
representation, plz, create a RFE for it
Comment 2 Tomas Hurka 2007-05-25 08:24:59 UTC
*** Issue 104780 has been marked as a duplicate of this issue. ***