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

Change the mechanism by which JDK loads the platform-specific GraphicsEnvironment class

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 13
    • 9, 10, 11, 12, 13
    • client-libs
    • 2d
    • b21

    Description

      It was noted that we use reflection on a class name located via a system property
      to locate the GraphicsEnvironment class

      File: jdk/src/java.desktop/share/classes/java/awt/GraphicsEnvironment.java
      [M] Line: 111 'ge = (GraphicsEnvironment)geCls.newInstance();'
       java.awt.graphicsenv property defines the GraphicsEnvironment class.

      This can be misconstrued as being an external SPI layer. In fact it was
      just a convenience to locate the right class depending on whether we
      were Sun JDK for (1) solaris or (2) windows (back in the 1.2 days).
      A JDK port could consider that part of its porting layer. But it was
      not for use outside JDK.

      To avoid polluting the system properties name space we could consider
      an alternative means to locate the class.

      Attachments

        Issue Links

          Activity

            People

              prr Philip Race
              prr Philip Race
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: