Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6824169

Need to remove some AWT class dependencies

    XMLWordPrintable

Details

    • b05
    • x86
    • windows

    Backports

      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.

        Attachments

          Issue Links

            Activity

              People

                dcherepanov Dmitry Cherepanov
                dcherepanov Dmitry Cherepanov
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: