JDK-6809227 : poor performance on Panel.Add() method in jdk6
  • Type: Task
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.2,5.0,6
  • Priority: P2
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic,windows_2000,windows_xp
  • CPU: x86
  • Submitted: 2009-02-24
  • Updated: 2013-01-29
  • Resolved: 2013-01-29
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
There is a performance regression introduced by the fix for
4533021 Container needs API to change Z-ordering of children
Testcase attached.

For more information please refer to

This is not a functional bug, but should be considered a performance tweak instead.

EVALUATION Affects HW components only.

EVALUATION Too risky for 6 update.

SUGGESTED FIX http://sa.sfbay.sun.com/projects/awt_data/6u16/6809227/

EVALUATION The current impelementation of the Z-order changes is quite expensive. Any addition (or removal) of a component to a container does restack all components of the container. The fix is to change only the Z-order of the particular component upon addition (or removal) of the component. It's a rather risky fix for 6u14 b04.