Hello, AWT Team. Please review the fix for the issue: https://bugs.openjdk.java.net/browse/JDK-8042585 The fix is available at: http://cr.openjdk.java.net/~pchelko/9/8042585/webrev/
This code was there for ages, but it's not used because SunToolkit.getAppContext and SunToolkit.setAppContext are private and not native. So the implementations could be removed. With best regards. Petr.