8130264: change the mechanism by which JDK loads the platform-specific PrinterJob implementation

Reviewed-by: serb, rriggs
This commit is contained in:
Phil Race 2018-11-30 10:55:59 -08:00
parent e4a3d4e455
commit 7fe615f9a7
9 changed files with 152 additions and 38 deletions

View file

@ -206,19 +206,6 @@ Java_jdk_internal_util_SystemProps_00024Raw_platformProperties(JNIEnv *env, jcla
/* patch level */
PUTPROP(propArray, _sun_os_patch_level_NDX, sprops->patch_level);
/* Printing properties */
/* Note: java.awt.printerjob is an implementation private property which
* just happens to have a java.* name because it is referenced in
* a java.awt class. It is the mechanism by which the implementation
* finds the appropriate class in the JRE for the platform.
* It is explicitly not designed to be overridden by clients as
* a way of replacing the implementation class, and in any case
* the mechanism by which the class is loaded is constrained to only
* find and load classes that are part of the JRE.
* This property may be removed if that mechanism is redesigned
*/
PUTPROP(propArray, _java_awt_printerjob_NDX, sprops->printerJob);
PUTPROP(propArray, _awt_toolkit_NDX, sprops->awt_toolkit);
/* Java2D properties */

View file

@ -69,7 +69,6 @@ typedef struct {
char *sun_stdout_encoding;
char *sun_stderr_encoding;
char *printerJob;
char *graphics_env;
char *awt_toolkit;