In X11GD_CreateDisplayMode we check for NULL after GetMethodID and FindClass which is probably a good thing. https://github.com/openjdk/jdk/blob/8e8e30d71cc8f77d81170205a4627191e5201568/src/java.desktop/unix/native/libawt_xawt/awt/awt_GraphicsEnv.c#L1638
https://github.com/openjdk/jdk/blob/8e8e30d71cc8f77d81170205a4627191e5201568/src/java.desktop/unix/native/libawt_xawt/awt/awt_GraphicsEnv.c#L1646 But we do it twice (!) which is most likely not needed. --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - JDK-8394750 Changes: https://git.openjdk.org/jdk/pull/33647/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33647&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8394750 Stats: 8 lines in 1 file changed: 0 ins; 5 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/33647.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/33647/head:pull/33647 PR: https://git.openjdk.org/jdk/pull/33647
