There are some remaining scattered uses of AppContext in AWT classes. src/java.desktop/share/classes/java/awt/EventDispatchThread.java src/java.desktop/share/classes/java/awt/KeyboardFocusManager.java src/java.desktop/share/classes/java/awt/SentEvent.java src/java.desktop/share/classes/java/awt/WaitDispatchSupport.java src/java.desktop/share/classes/sun/awt/EmbeddedFrame.java src/java.desktop/share/classes/sun/awt/GlobalCursorManager.java src/java.desktop/share/classes/sun/awt/KeyboardFocusManagerPeerImpl.java src/java.desktop/share/classes/sun/awt/PaintEventDispatcher.java src/java.desktop/share/classes/sun/font/SunFontManager.java Some are just references in comments as is the case in the last file
2 tests are removed as a result jdk/javax/swing/system/6799345/TestShutdown.java - NPE because main appcontext not created. jdk/sun/awt/AppContext/8012933/Test8012933.java - calls AppContext.dispose() which interrupts the EDT Regarding the latter, see my comment in EventDispatchThread.java ------------- Commit messages: - 8381020 - -8381020 Changes: https://git.openjdk.org/jdk/pull/30463/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30463&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8381020 Stats: 354 lines in 11 files changed: 0 ins; 334 del; 20 mod Patch: https://git.openjdk.org/jdk/pull/30463.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/30463/head:pull/30463 PR: https://git.openjdk.org/jdk/pull/30463
