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

com.sun.java.swing.SwingUtilities2.isLocalDisplay should just return true on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • client-libs
    • b47
    • 6
    • b53
    • x86
    • windows_xp

      During cold startup of java application, any touch to rt.jar will cause significant amount of time based on some experiments performance team has done.

      I found that when startup MetalWorks demo on Windows platform, sun.awt.X11GraphicsEnviroment class is requested. This class is not there on Windows. So it will end up opening all the jar files on bootclasspath. The root cause is com.sun.java.swing.SwingUtilities2.isLocalDisplay just simply call Class.forName("sun.awt.X11GraphicsEnviroment") on all platforms.

            prr Philip Race
            xlu Xiaobin Lu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: