Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6616323
Votes 0
Synopsis consider benefits of replacing a componen array with other collection from the awt.Container class
Category java:classes_awt
Reported Against
Release Fixed 7(b36), 6u10(b23) (Bug ID:2161436)
State 10-Fix Delivered, request for enhancement
Priority: 4-Low
Related Bugs 6690068 , 6692619 , 6697660 , 6698652 , 6784816
Submit Date 12-OCT-2007
Description
java.awt.Container class stores all children in an array of Components:
1) its initial size is 0;
2) on changing the hierarchy of components (add/remove) it addresses the Arrays.copy(args) method;
Posted Date : 2007-10-12 16:04:51.0
Work Around
N/A
Evaluation
List collection might be applied. Performance testing should be accomplished to choose better collection type.
Posted Date : 2007-12-27 14:24:58.0

There is no visible improvements with startup2 and startup3 but it does observed with swingmark if Container use ArrayList instead of plaing array.
C:\ad153231\refworkload_1>efworkload_1\results\swingmark\comp_array_original_1 C
============================================================================
esults\swingmark  Benchmark         Samples        Mean     Stdev             Ge
omean Weight
  swingmark              30      907.52      3.77
============================================================================
esults\swingmark  Benchmark         Samples        Mean     Stdev   %Diff    P
 Significant
  swingmark              30      881.36      4.33   -2.88 0.000          Yes
============================================================================
  * - Not Significant: The %Diff for the mean could be noise. If there is
      an actual difference, more samples would be needed to detect it.
Posted Date : 2008-01-25 16:51:20.0
Comments
  
  Include a link with my name & email   

Submitted On 08-DEC-2008
JacobDK
The implementation of this bugfix is causing severe deadlock problems due to an AWTTreeLock having been added to java.awt.Container.getComponentCount(). 

For details, see

http://forums.java.net/jive/thread.jspa?messageID=318793

Please change this, or roll this bugfix back.



PLEASE NOTE: JDK6 is formerly known as Project Mustang