JDK-8222990 : Change the mechanism by which JDK loads the platform-specific GraphicsEnvironment class
  • Type: CSR
  • Component: client-libs
  • Sub-Component: 2d
  • Priority: P3
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 13
  • Submitted: 2019-04-25
  • Updated: 2021-09-16
  • Resolved: 2019-04-27
Related Reports
CSR :  
Relates :  
Relates :  
Description
Summary
-------

Remove the java.awt.graphicsenv system property

Problem
-------
  The java.awt.graphicsenv system property has been used since JDK 1.2 to specify the concrete platform implementation class for the abstract SE API class java.awt.GraphicsEnvironment.
This not only pollutes the system property space, but implies that this is pluggable which it is not. Nor was it ever considered a "standard" system property but it used the "java" namespace. 

Also the code that sets it is embedded into the launcher which is also undesirable creating a cross-module dependency  whereby
the launcher has hard-coded the names of internal implementation classes of the desktop module.

Solution
--------
Remove the java.awt.graphicsenv system property
 which is used to specify the name of the platform implementation class.

It is replaced by a mechanism entirely internal to the java.desktop module.

Specification
-------------

Remove the java.awt.graphicsenv system property
Comments
Moving to Approved. If there are questions raised about this during the EA period, it would be reasonable to add a release note later.
27-04-2019

I do not think this is important enough to need a release note.
25-04-2019