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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9, 10, 11, 12, 13
    • Fix Version/s: 13
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • Resolved In Build:
      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

              • Assignee:
                prr Philip Race
                Reporter:
                prr Philip Race
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: