8212700: Change the mechanism by which JDK loads the platform-specific AWT Toolkit

Reviewed-by: serb, rriggs
This commit is contained in:
Phil Race 2019-05-10 16:22:35 -07:00
parent 7f841d6d9a
commit 8ca1211aab
13 changed files with 95 additions and 66 deletions

View file

@ -394,14 +394,6 @@ GetJavaProperties(JNIEnv *env)
/* patches/service packs installed */
sprops.patch_level = NULL; // leave it undefined
/* Java 2D/AWT properties */
#ifdef MACOSX
// Always the same Toolkit on Mac OS X
sprops.awt_toolkit = "sun.lwawt.macosx.LWCToolkit";
#else
sprops.awt_toolkit = "sun.awt.X11.XToolkit";
#endif
#ifdef SI_ISALIST
/* supported instruction sets */
{