On Wed, 24 Jul 2024 12:45:46 GMT, Karm Michal Babacek <d...@openjdk.org> wrote:
>> src/java.desktop/unix/native/libawt/awt/awt_LoadLibrary.c line 83: >> >>> 81: headlessFn); >>> 82: // If an exception occurred, we assume headless mode. >>> 83: if ((*env)->ExceptionCheck(env)) { >> >> I don't like this at all. > > See > [comment](https://github.com/openjdk/jdk/pull/20169#issuecomment-2247823182), > please. Here, nothing has changed… except for the added comment which states what's done: if an exception occurred while calling `GraphicsEnvironment.isHeadless`, the `AWTIsHeadless` function returns `JNI_TRUE`. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/20169#discussion_r1922852985