United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6824169 : Need to remove some AWT class dependencies

Details
Type:
Enhancement
Submit Date:
2009-03-31
Status:
Resolved
Updated Date:
2011-01-19
Project Name:
JDK
Resolved Date:
2009-04-21
Component:
client-libs
OS:
windows
Sub-Component:
java.awt
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u14
Fixed Versions:
6u14 (b05)

Related Reports
Backport:
Duplicate:
Relates:
Relates:
Relates:
Relates:

Sub Tasks

Description
There are some dependencies on some AWT classes that may impact on the startup performance. The list below explains some of the dependencies:

- the usages of the reflection API to access the private fields/methods

The usages may cause to load of some unexpected AWT classes. For example, the PopupMenu class (and some other classes) is a part of the method signatures of the Component class and the classes are loaded during the reflection API calls. For more information, please refer to the CR 6823296 (Class.getDeclaredMethod, getMethod, getDeclaredField, getField cause many classes to be loaded).

- the usages of the instanceof operator

The usages may cause to load of some unexpected AWT classes as well. For example, the GDIWindowSurfaceData class have some optional dependencies on the WFileDialogPeer, WPrintDialogPeer classes.

                                    

Comments
SUGGESTED FIX

http://sa.sfbay.sun.com/projects/awt_data/6u14/6824169/
                                     
2009-04-13
EVALUATION

Need to be fixed.
                                     
2009-04-09



Hardware and Software, Engineered to Work Together