RFR: 8336382: Fixes error reporting in loading AWT and fonts [v10]
Alexey Ivanov
aivanov at openjdk.org
Mon Jan 20 21:26:42 UTC 2025
On Wed, 24 Jul 2024 12:45:46 GMT, Karm Michal Babacek <duke at 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
More information about the client-libs-dev
mailing list